PHP » GoLang |
login |
register |
about
|
microtime(PHP 4, PHP 5, PHP 7) microtime — Return current Unix timestamp with microseconds Descriptionmicrotime() returns the current Unix timestamp with microseconds. This function is only available on operating systems that support the gettimeofday() system call. Parameters
Return ValuesBy default, microtime() returns a string in the form "msec sec", where sec is the number of seconds since the Unix epoch (0:00:00 January 1,1970 GMT), and msec measures microseconds that have elapsed since sec and is also expressed in seconds.
If Examples
Example #1 Timing script execution with microtime()
<?php Example #2 Timing script execution in PHP 5
<?php Example #3 microtime() and REQUEST_TIME_FLOAT (as of PHP 5.4.0)
<?php |
more
Recently updated
more
Most requested
more
Last requests
|