[pypy-svn] r60548 - pypy/branch/oo-jit/pypy/translator/cli/src

antocuni at codespeak.net antocuni at codespeak.net
Wed Dec 17 18:05:09 CET 2008


Author: antocuni
Date: Wed Dec 17 18:05:08 2008
New Revision: 60548

Modified:
   pypy/branch/oo-jit/pypy/translator/cli/src/pypylib.cs
Log:
try to make time.clock() more precise



Modified: pypy/branch/oo-jit/pypy/translator/cli/src/pypylib.cs
==============================================================================
--- pypy/branch/oo-jit/pypy/translator/cli/src/pypylib.cs	(original)
+++ pypy/branch/oo-jit/pypy/translator/cli/src/pypylib.cs	Wed Dec 17 18:05:08 2008
@@ -1005,10 +1005,9 @@
             return t.TotalSeconds;
         }
 
-        static DateTime ClockStart = DateTime.UtcNow;
         public static double ll_time_clock()
         {
-            return (DateTime.UtcNow - ClockStart).TotalSeconds;
+          return DateTime.UtcNow.Ticks * 1e-7;
         }
 
         public static void ll_time_sleep(double seconds)



More information about the Pypy-commit mailing list