This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Arfrever, lemburg, neologix, pitrou, python-dev, vstinner
Date 2012-05-30.11:35:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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()
        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:40vstinnersetrecipients: + vstinner, lemburg, pitrou, Arfrever, neologix, python-dev
2012-05-30 11:35:39vstinnersetmessageid: <>
2012-05-30 11:35:39vstinnerlinkissue14428 messages
2012-05-30 11:35:39vstinnercreate