[Tutor] python time

Alan Gauld alan.gauld at btinternet.com
Wed Nov 25 20:40:52 CET 2009


"spir" <denis.spir at free.fr> wrote 

> How does python get the time in microseconds? 

The underlying OS API generally provides that.

> (In other words, how would I get it if python (like some other 
> languages) would provide time in whole seconds only?)

You would have to call the OS routines directly from Python 
yourself.

Alan G



More information about the Tutor mailing list