Re: TimeSpan calculation error by Hilton
Hilton
Fri Mar 07 03:36:27 CST 2008
You da man!
Thanks!
Hilton
P.S. If Environment.Ticks has less than 1seccond resolution, why not
DateTime?
"Rüdiger Kardel" <rkardel@nospam.arcornews.de> wrote in message
news:fqr39a.4lo.1@news.kardel.org...
> Hilton,
>
> Environment.TickCount
>
> Ruediger
>
> "Hilton" <nospam@nospam.com> schrieb im Newsbeitrag
> news:u41Aj.19883$0w.10173@newssvr27.news.prodigy.net...
>> Turns out dt.MilliSeconds is always zero too - that sucks. I was hoping
>> to use it to calculate the timespan milliseconds.
>>
>> Any simple way to get times less than a second? Any reason why this is
>> so crippled?
>>
>> Hilton
>>
>>
>> "Hilton" <nospam@nospam.com> wrote in message
>> news:z_0Aj.19882$0w.12794@newssvr27.news.prodigy.net...
>>> Hi,
>>>
>>> Assuming dt1 and dt0 (DateTime structs) represent times about or less
>>> than one second apart, then using:
>>>
>>> (dt1 - dt0).TotalSeconds (or TotalMilliSeconds, or dt1.Subtract (dt0))
>>>
>>> returns 0.0 *or* 1.0 whereas on the desktop, .NET can return any value
>>> between 0.0 and 1.0.
>>>
>>> Is this a known issue?
>>>
>>> Hilton
>>>
>>>
>>
>>
>
>