Datetime with float seconds

Xavier Ho contact at xavierho.com
Wed Aug 5 09:15:53 EDT 2009


On Wed, Aug 5, 2009 at 10:50 PM, kpal <kpalamartchouk at gmail.com> wrote:

> Hello Everybody,
>
> The standard datetime has 1 microsecond granularity. My application
> needs finer time resolution, preferably float seconds. Is there an
> alternative to the out-of-the-box datetime? Timezone support is not
> essential.


This is a little outdated, but:

>>>from time import time

Usually gets me things like

#output
Run time: 0.0279998779297 seconds.

So... that might be what you want.

- Xavier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090805/ee90880a/attachment-0001.html>


More information about the Python-list mailing list