[Tutor] python time

Kent Johnson kent37 at tds.net
Thu Nov 26 14:33:20 CET 2009


On Wed, Nov 25, 2009 at 11:11 AM, spir <denis.spir at free.fr> wrote:
> Hello,
>
> How does python get the time in microseconds? (In other words, how would I get it if python (like some other languages) would provide time in whole seconds only?)

Use the source...in particular, see floattime() in timemodule.c:
http://svn.python.org/view/python/branches/release31-maint/Modules/timemodule.c?view=markup

Kent


More information about the Tutor mailing list