Thanks for the fix! From http://msdn2.microsoft.com/en-us/library/system.environment.tickcount.aspx
The value of this property is derived from the system timer and is stored as a 32-bit signed integer. Consequently, if the system runs continuously, TickCount will increment from zero to Int32.MaxValue for approximately 24.9 days, then jump to Int32.MinValue, which is a negative number, then increment back to zero during the next 24.9 days. On Mon, 2007-07-23 at 10:54 +0200, 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? > > Thanks! > > lupus > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
