--- dhry.d.orig Mon Jun 28 11:41:42 2004 +++ dhry.d Tue Jan 25 15:45:53 2005 @@ -880,6 +881,22 @@ double q; q = cast(double)time(null); + + return q; + } +} + +version (darwin) +{ + import std.c.darwin.darwin; + + double dtime() + { + double q; + timeval tv; + + gettimeofday(&tv,null); + q = cast(double)tv.tv_sec + cast(double)tv.tv_usec * 1.0e-6; return q; }