

@unittest.skipUnless(hasattr(time, 'clock_getres'), 'need time.clock_getres()')
def test_clock_getres(self):
    res = time.clock_getres(time.CLOCK_REALTIME)
    self.assertGreater(res, 0.0)
    self.assertLessEqual(res, 1.0)

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_time.py TimeTestCase.test_clock_getres/original