std.experimental.logger formal review round 3

Marco Leise via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 1 08:53:16 PDT 2014


Am Wed, 01 Oct 2014 15:05:53 +0000
schrieb "Robert burner Schadek" <rburners at gmail.com>:

> On Wednesday, 1 October 2014 at 14:24:52 UTC, Marco Leise wrote:
> > Am Wed, 01 Oct 2014 12:49:29 +0000
> > schrieb "Robert burner Schadek" <rburners at gmail.com>:
> >
> >> maybe I should add a disableGetSysTime switch
> >
> > CLOCK_REALTIME_COARSE / CLOCK_REALTIME_FAST should be explored.
> 
> good pointer, but what about Win and Mac

Windows 2000 had some function that returns 4ms accurate time,
I hope it is implemented like CLOCK_REALTIME_COARSE.
OS X ... oh well. Don't know. Just declare the "fast timer" a
hint, I guess. Like when you ask for anti-aliasing in OpenGL
and the implementation is free to decide if it can or want's
to deliver. So it turns into: "I need a sub-second
timestamp, but make it as fast as possible on the target OS".
Maybe some day Apple will copy CLOCK_REALTIME_FAST from
FreeBSD.

> >
> > If you disable time completely, what would the LogEntry
> > contain as the time stamp? SysTime.init?
> 
> That was my first idea.



-- 
Marco



More information about the Digitalmars-d mailing list