[Mono-list] Bug in Environment.TickCount

Gareth Pearce tilps.kilm at gmail.com
Mon Jul 23 05:31:01 EDT 2007


Paolo Molaro wrote:
> On 07/19/07 Thiago M. Sayão wrote:
>   
>> Enrironment.TickCount is supposed to return the miliseconds since the
>> boot. For my surprise it was returning a negative number which should
>> only happen on the 47th day of uptime.
>>     
>
> I committed a fix to svn. Note that the negative numbers will
> be returned after about 24 days.
> Does anyone have a windows system running for more than that (chuckles)
> and see if TickCount returns negative values or if the sign bit is
> masked?
>
>   
The documentation used to say that it wrapped to 0, but it does go 
negative.  I think the msdn docs were supposed to be updated at some 
point but I haven't verified that recently.

--Gareth
> Thanks!
>
> lupus
>
>   


More information about the Mono-list mailing list