Exemple #1
0
 def testInitializeNowFunction_windows(self):
     if not (sys.platform.startswith(trace_time._PLATFORMS['windows'])
             or sys.platform.startswith(trace_time._PLATFORMS['cygwin'])):
         return True
     trace_time.InitializeNowFunction(sys.platform)
     self.assertTrue(trace_time.GetClock() == trace_time._WIN_HIRES
                     or trace_time.GetClock() == trace_time._WIN_LORES)
Exemple #2
0
 def testInitializeNowFunction_mac(self):
     if not sys.platform.startswith(trace_time._PLATFORMS['mac']):
         return True
     trace_time.InitializeNowFunction(sys.platform)
     self.assertEqual(trace_time.GetClock(), trace_time._MAC_CLOCK)