Message161946
> It really looks like seconds to me, definitely not jiffies ;-)
time.process_time() uses maybe "seconds" on Linux, but it doesn't include time elapsed during sleep. See the test:
def test_process_time(self):
start = time.process_time()
time.sleep(0.1)
stop = time.process_time()
self.assertLess(stop - start, 0.01)
According to Wikipedia: "Since 1967, the second has been defined to be: the duration of 9,192,631,770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium 133 atom."
The caesium 133 atom is not sleeping while your process is sleeping, so you cannot say the time.process_time() uses second. Do you see what I mean? |
|
Date |
User |
Action |
Args |
2012-05-30 11:35:40 | vstinner | set | recipients:
+ vstinner, lemburg, pitrou, Arfrever, neologix, python-dev |
2012-05-30 11:35:39 | vstinner | set | messageid: <1338377739.98.0.31774968941.issue14428@psf.upfronthosting.co.za> |
2012-05-30 11:35:39 | vstinner | link | issue14428 messages |
2012-05-30 11:35:39 | vstinner | create | |
|