[Mono-bugs] [Bug 469907] Stopwatch.Elapsed overflow

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 28 05:36:42 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=469907

User jan.siroky at rcware.eu added comment
https://bugzilla.novell.com/show_bug.cgi?id=469907#c2





--- Comment #2 from Jan Sirroky <jan.siroky at rcware.eu>  2009-01-28 03:36:40 MST ---
I do not find this fix acceptable because you can get divison by zero error
when Frequency < TimeSpan.TicksPerSecond.

code from 2.4 branch:
return TimeSpan.FromTicks ((long)(ElapsedTicks / (Frequency /
TimeSpan.TicksPerSecond)));

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list