[Mono-dev] high-resolution timer in Mono?

Jonathan Resnick jresnick at gmail.com
Fri Feb 24 12:43:45 EST 2006

Thanks Alex.  DateTime.Ticks does appear to have much better resolution,
however I'm not sure how accurate it is.  I'm going to use it for now
though, and assume that it is accurate enough for my purposes.  If anyone
can comment on the accuracy of System.DateTime, I would be interested.


-----Original Message-----
From: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Alex
Sent: Friday, February 24, 2006 12:16 PM
Cc: 'mono-devel mailing list'
Subject: Re: [Mono-dev] high-resolution timer in Mono?

Jonathan Resnick wrote:

>Here's a link to the Mono docs:
Perhaps this restriction is intentional here because its an integer, looking
at Ticks property for DateTime object -

It appears to have much better resolution, so you should be able to create
DateTime variable with DateTime.Now value and then use difference between
current and originally recorded time - no need to use System.Environment for
this anyway since it would apply to the whole app rather than benchmarked
part of code.

Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com

More information about the Mono-devel-list mailing list