[Mono-devel-list] [PATCH] Bug Fix for GetTickCount in WAPI IO Layer
dick at ximian.com
Mon Feb 28 09:28:16 EST 2005
On Mon, 2005-02-28 at 15:01 +0100, Paolo Molaro wrote:
> GetTickCount () is defined as returning the (possibly wrapped) number of
> ms since the boot. Of course anyone who uses it to get the uptime is
> stupid, but that doesn't mean we should not have a correct implementation
> when possible. It's like not providing malloc() because someone may
> misuse the pointer.
Yeah, but malloc() doesn't start to return wrong numbers after a while.
> A correct implementation is basically just two memory
> loads more than the current (it would be enough to just store the
> boot seconds, though), which is just noise performance-wise.
I haven't seen the patch, as I said.
More information about the Mono-devel-list