]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/timercmn.cpp
1. wxDateTimeHolidayAuthority class for calculating the holidays added
[wxWidgets.git] / src / common / timercmn.cpp
index 533432468082e387f2a8b9219d7b5af4646bbbb1..64dbb0aac2bcdcad7be03199feec4536dafc1082 100644 (file)
@@ -1,13 +1,12 @@
 /////////////////////////////////////////////////////////////////////////////
 // Name:        common/timercmn.cpp
 // Purpose:     Common timer implementation
-// Author:      Julian Smart (original version)
-// Modified by: Vadim Zeitlin on 12.11.99 to get rid of all ifdefs
-//              Sylvain Bougnoux to add wxStopWatch class
-//
-//              Completely rewritten from scratch on Dic/99 by
-//              Guillermo Rodriguez <guille@iies.es>
-//
+// Author:
+//    Original version by Julian Smart
+//    Vadim Zeitlin got rid of all ifdefs (11.12.99)
+//    Sylvain Bougnoux added wxStopWatch class
+//    Guillermo Rodriguez <guille@iies.es> rewrote from scratch (Dic/99)
+// Modified by:
 // Created:     04/01/98
 // RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart and Markus Holzem
@@ -104,7 +103,7 @@ long wxStopWatch::GetElapsedTime() const
 // old timer functions superceded by wxStopWatch
 // ----------------------------------------------------------------------------
 
-static wxLongLong wxStartTime = 0;
+static wxLongLong wxStartTime = 0l;
 
 // starts the global timer
 void wxStartTimer()
@@ -212,7 +211,8 @@ wxLongLong wxGetLocalTimeMillis()
     // 00:00:00 Jan 1st 1970 and then whatever is available
     // to get millisecond resolution.
     //
-    wxLongLong val = 1000 * wxGetLocalTime();
+    wxLongLong val = 1000l;
+    val *= wxGetLocalTime();
 
     // If we got here, do not fail even if we can't get
     // millisecond resolution.