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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -