Author: jackson
Date: 2006-05-25 19:25:06 -0400 (Thu, 25 May 2006)
New Revision: 61145
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Timer.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
Log:
* XplatUIX11.cs:
* Timer.cs: Use Utc time so that no local time zone stuff needs
* to
be used (should be faster).
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-05-25 22:23:24 UTC (rev 61144)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-05-25 23:25:06 UTC (rev 61145)
@@ -5,7 +5,10 @@
- Remove some uneeded setup code from Draw.
* TreeNodeCollection.cs: If the tree doesn't have a top node when
a new node is inserted make the new node the top.
-
+ * XplatUIX11.cs:
+ * Timer.cs: Use Utc time so that no local time zone stuff needs to
+ be used (should be faster).
+
2006-05-25 Chris Toshok <[EMAIL PROTECTED]>
* DataGrid.cs (EnsureCellVisibility): remove some code to fix a
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Timer.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Timer.cs
2006-05-25 22:23:24 UTC (rev 61144)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Timer.cs
2006-05-25 23:25:06 UTC (rev 61145)
@@ -60,7 +60,7 @@
enabled = value;
if (value) {
// Use AddTicks so we get some
rounding
- expires =
DateTime.Now.AddMilliseconds (interval > Minimum ? interval : Minimum);
+ expires =
DateTime.UtcNow.AddMilliseconds (interval > Minimum ? interval : Minimum);
XplatUI.SetTimer (this);
} else {
XplatUI.KillTimer (this);
@@ -82,7 +82,7 @@
interval = value;
// Use AddTicks so we get some rounding
- expires = DateTime.Now.AddMilliseconds
(interval > Minimum ? interval : Minimum);
+ expires = DateTime.UtcNow.AddMilliseconds
(interval > Minimum ? interval : Minimum);
if (enabled == true) {
XplatUI.KillTimer (this);
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
2006-05-25 22:23:24 UTC (rev 61144)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
2006-05-25 23:25:06 UTC (rev 61145)
@@ -1149,7 +1149,7 @@
int pending;
Hwnd hwnd;
- now = DateTime.Now;
+ now = DateTime.UtcNow;
lock (XlibLock) {
pending = XPending (DisplayHandle);
@@ -3766,7 +3766,7 @@
}
}
- CheckTimers(DateTime.Now);
+ CheckTimers(DateTime.UtcNow);
if (!pending) {
return false;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches