time in nanoseconds php code example
Example: time now with milliseconds php
$d = new DateTime();
echo $d->format("Y-m-d H:i:s.v"); // v : Milliseconds
$d = new DateTime();
echo $d->format("Y-m-d H:i:s.v"); // v : Milliseconds