I think the problem was using Now.ToOADate. I hadn't discovered the power of
the TimeSpan class.

Thanks, Henk and Graeme.

Manel

-----Original Message-----
From: Henk de Koning [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 29, 2002 11:59 AM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Now Function accuracy?


System.DateTime.Ticks is supposed to work on NT4.

-- Henkk

----- Original Message -----
From: "Serra, Manel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 29, 2002 11:50 AM
Subject: [DOTNET] Now Function accuracy?


> Can anyone tell me what is the accuracy for the Now function? It returns
> quite a lot decimals but I'm not sure they are representative of the
> precision of that function.
>
> I need this information because I'm trying to know the time spent in a
> method call. I'm sure some of you may know a better method, so suggestions
> in this direction are also welcome. I tried the PerformanceCounter class,
> but it asks for Windows 2000, so this option seems discarded as I'm using
> NT.
>
> Many thanks,
>
> Manel
>
> You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.
>

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to