I want to increase time by 10 milliseconds on every time execution of a loop.
$new_ts = "2015-07-01 14:16:31.000000";
for($i=0;$i<10;$i++){
echo $new_ts."<br>";
$ts = strtotime($new_ts);
$new_ts = date('Y-m-d H:i:s.u', $ts + 0.100000);
}
It generates output like
2015-07-01 14:16:31.000000
2015-07-01 14:16:31.000000
2015-07-01 14:16:31.000000
2015-07-01 14:16:31.000000
2015-07-01 14:16:31.000000
2015-07-01 14:16:31.000000
2015-07-01 14:16:31.000000
2015-07-01 14:16:31.000000
2015-07-01 14:16:31.000000
2015-07-01 14:16:31.000000