%40python.org?Subject=How%20to%20get%20milliseconds%20when%20substructing%20datetime%20objects%3FIn-Reply-To=
*Thu Dec 13 00:13:22 CET 2007*
- Previous message: How to get milliseconds when substructing datetime
objects?
http://mail.python.org/pipermail/python-list/2007-December/469397.html
.milliseconds()
Thanks!
Dima
**Gabriel Genellina* gagsl-py2 at yahoo.com.ar
python-list%40python.org?Subject=How%20to%20get%20milliseconds%20when%20substructing%20datetime%20objects%3FIn-Reply-To=
*Thu Dec 13 00:13:22 CET 2007*
- Previous message: How to get milliseconds when substructing datetime
En Thu, 13 Dec 2007 14:07:10 -0300, Dmitri O.Kondratiev
[EMAIL PROTECTED] escribi�:
While looking for ready to use library I have roughly skteched the
functions
that I need:
They look fine to me. Just one thing:
days = micros / oneDayMicros # whole number of days
It's safer to use
Please help to find simple solutiion for measuring times of operations with
millisecond precision.
For this I am trying to use datetime() objects:
import time
import datetime
def dreamTime(secs):
t1 = datetime.datetime.now()
time.sleep(secs)
t2 = datetime.datetime.now()
dt = t2 -
En Wed, 12 Dec 2007 11:40:24 -0300, Dmitri O.Kondratiev
[EMAIL PROTECTED] escribió:
Please help to find simple solutiion for measuring times of operations
with
millisecond precision.
For this I am trying to use datetime() objects:
import time
import datetime
def dreamTime(secs):