faqts : Computers : Programming : Languages : Python : Common Problems : Date / Time

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 14 people (7%) answered Yes
Recently 0 of 10 people (0%) answered Yes

Entry

Is there a way to obtain sub-second times in Python (at most to the milli-second)?

Aug 24th, 2000 18:46
unknown unknown, Dan Schmidt


Whenever I have to do precise timing in a scripting language, I look
at how the profiler does it, and it worked this time too.  Look at
how Profile.__init__ in profile.py: sets self.timer; it does some
special-casing based on OS-specific things.