datetime review part 2 [Update 4]
Jonathan M Davis
jmdavisProg at gmx.com
Wed Nov 17 14:51:19 PST 2010
On Wednesday, November 17, 2010 13:44:32 Kagamin wrote:
> Jonathan M Davis Wrote:
> > Latest: http://is.gd/gSwDv
>
> You use QueryPerformanceCounter.
> Is this code tested on Windows? MSDN doesn't specify what
> QueryPerformanceCounter returns. see
> http://msdn.microsoft.com/en-us/magazine/cc163996.aspx
SHOO wrote that portion of the code as part of his stopwatch stuff, so I'm
probably not as clear on that as I am on most of the other stuff, but it was
working for him, as far as I know, and I've done some testing on wine (including
making sure that all of the unit tests pass), so it's not like it blows up or
anything like that. There could be some sort of fundamental problem with it or
subtle bug that I'm not aware of, but it at least appears to work. I'd have to
study up on it to see whether there are any real problems with it. I was just
using the code that SHOO had to get the current system time at high resolution.
I figured that he'd figured all that out, and there was no reason to duplicate
effort.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list