getUTCtime() increases irregularly
david
tazz at gmx.at
Wed Apr 4 06:11:07 PDT 2007
Hello,
I was just playing with a slow down class, when I noticed
getUTCtime() from std.date works a bit unexpected:
import std.stdio;
import std.date : getUTCtime;
int main(char[][] args)
{
for (int i=0;i<500;i++)
writefln(getUTCtime());
return 0;
}
results in (shortened version, for obvious reasons):
1175692021281
1175692021281
1175692021281
1175692021281
1175692021281
1175692021281
1175692021281
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021296
1175692021312
1175692021312
1175692021312
1175692021312
1175692021312
1175692021312
1175692021312
1175692021312
1175692021312
1175692021312
1175692021312
1175692021312
1175692021312
So, it increases as well in large increments
and also in irregular ones, namely
15 and 16 milliseconds.
Since I found nothing in the phobos docs,
how can I access the current time at a more
precise level?
david
More information about the Digitalmars-d-learn
mailing list