according to what I can remember
there are OS that cant use usleep
anyway I am sure I remember there is a reason I did not use usleep
there is always some reasoning inhalojoy programming
be sure of this!
man
but my mtimes() function is as small and compact as can be,
that is
to disturb any timing as little as possible
it is a nice way to read [man]microtime[/man] into seconds
now
I did not expect any encuragement
or positive feedback from most boring memembers here
I have learned this by now
only jump at you, when they see a little chance of critic
/halojoy
is glad to know people around here, that are different and positive
like RodneyH
thanks mate - for your exsistence in a cold and hard world
😉
<?php
function mtimes(){return array_sum(explode(" ",microtime()));}
$time1=mtimes();
$time2=mtimes();
$intervall=$time2-$time1;
echo "seconds= $intervall";
?>