Gen. partnerAlgotech

PHP function microtime()

Return current Unix timestamp with microseconds

|
September 11, 2019

Availability in PHP 4.0

Return current Unix timestamp with microseconds

Parameters

Parameter Data type Default value Note
$get_as_float bool null When called without the optional argument, this function returns the string "msec sec" where sec is the current time measured in the number of seconds since the Unix Epoch (0:00:00 January 1, 1970 GMT), and msec is the microseconds part. Both portions of the string are returned in units of seconds.

Return values

mixed

Other resources

Official microtime documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.