[Issue 5629] core.time unittest disabled
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 20 18:29:13 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5629
--- Comment #1 from Brad Roberts <braddr at puremagic.com> 2011-02-20 18:26:33 PST ---
in TickDuration's static this. freebsd has clock_gettime, so it uses the
clock_getres api. The results:
ts.tv_nsec = 280, ticksPerSec = 3571428
Later, during the unit test:
auto t = TickDuration.from!"nsecs"(1_000_000_000);
assert(t.nsecs == 1_000_000_000);
t.nsecs is slightly less: t.nsecs = 999999840
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list