PHP Equivalent of C# ticks -
i converting asp.net c# application php. service uses datetime ticks , wondering if there equivalent in php.
if not best way me calculate timespan?
use microtime(true)
please note following, straight off php manual
by default, microtime() returns string in form "msec sec", sec current time measured in number of seconds since unix epoch (0:00:00 january 1, 1970 gmt), , msec number of microseconds have elapsed since sec expressed in seconds.
if get_as_float set true, microtime() returns float, represents current time in seconds since unix epoch accurate nearest microsecond.
Comments
Post a Comment