gettimeofday

It returns the current time.
Example

<?php
echo “<pre>”;
print_r(gettimeofday());
echo gettimeofday(true);
?>

Output

Array
(
[sec] => 1335335004
[usec] => 767981
[minuteswest] => -330
[dsttime] => 0
)
1335335004.7681