Re: Getting milliseconds in Python

2005-02-17 Thread Martin Christensen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > "Brian" == Brian Beck <[EMAIL PROTECTED]> writes: Brian> Man, this is the hottest topic on c.l.py since that Lazaridis Brian> guy... ... which was really the point of my joke, even if it did belly flop somewhat. This whole discussions brought to

Re: Getting milliseconds in Python

2005-02-17 Thread Brian Beck
Martin Christensen wrote: A math teacher! A math teacher! My kingdom for a math teacher! Martin Man, this is the hottest topic on c.l.py since that Lazaridis guy... -- Brian Beck Adventurer of the First Order -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting milliseconds in Python

2005-02-17 Thread Martin Christensen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > "Brian" == Brian Beck <[EMAIL PROTECTED]> writes: Brian> Despite a millisecond being a thousandth of a second [...] A math teacher! A math teacher! My kingdom for a math teacher! Martin - -- Homepage: http://www.cs.auc.dk/~factotum/ GPG

Re: Getting milliseconds in Python

2005-02-17 Thread Brian Beck
Curt wrote: Oh, you meant 'seconds / 100 = milliseconds'? (canard) I assume you're suggesting that there are two typos in my original post (the * and the 100)... Despite a millisecond being a thousandth of a second, given the number of seconds provided by the time module, he does have to *multip

Re: Getting milliseconds in Python

2005-02-17 Thread Curt
On 2005-02-16, Brian Beck <[EMAIL PROTECTED]> wrote: >>> >>>seconds * 100 = milliseconds >> >> >> are you sure you know what a millisecond is? >> >> (duck) > > Touché. > > But it was a typo. Oh, you meant 'seconds / 100 = milliseconds'? (canard) -- http://mail.python.org/mailman/listinfo/pyt

Re: Getting milliseconds in Python

2005-02-16 Thread Brian Beck
Fredrik Lundh wrote: Brian Beck wrote: That IS what you want. seconds * 100 = milliseconds are you sure you know what a millisecond is? (duck) Touché. But it was a typo. -- Brian Beck Adventurer of the First Order -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting milliseconds in Python

2005-02-16 Thread Amand Tihon
Brian Beck wrote: > That IS what you want. > > seconds * 100 = milliseconds May I assume that this IS what you want ? ()___ ()//__/)_() ||(___)//#/_/#/_/#/_/#()/|| |||#| |#|_|#|_|#|_|| || |||_|#|_|#|_|#|_|#||/|| |||#|_

Re: Getting milliseconds in Python

2005-02-16 Thread Fredrik Lundh
Brian Beck wrote: > That IS what you want. > > seconds * 100 = milliseconds are you sure you know what a millisecond is? (duck) -- http://mail.python.org/mailman/listinfo/python-list

RE: Getting milliseconds in Python

2005-02-16 Thread Batista, Facundo
Title: RE: Getting milliseconds in Python [Brian Beck] #- seconds * 100 = milliseconds Wht? It really is   seconds = 1000 * milliseconds .    Facundo Bitácora De Vuelo: http://www.taniquetil.com.ar/plog PyAr - Python Argentina: http://pyar.decode.com.ar

Re: Getting milliseconds in Python

2005-02-16 Thread Brian Beck
mjs7231 wrote: This is no good, I am looking for milliseconds, not seconds.. as stated above. That IS what you want. seconds * 100 = milliseconds -- Brian Beck Adventurer of the First Order -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting milliseconds in Python

2005-02-16 Thread Fredrik Lundh
"mjs7231" <[EMAIL PROTECTED]> wrote: > "Return the time as a floating point number expressed in seconds since > the epoch, in UTC. Note that even though the time is always returned as > a floating point number, not all systems provide time with a better > precision than 1 second. While this functi

Re: Getting milliseconds in Python

2005-02-16 Thread jdonnell
"This is no good, I am looking for milliseconds, not seconds.. as stated above. " The docs are not very clear. I had the same issue when I was trying to do the same thing, but the time and datetime modules return milliseconds on my linux machines. -- http://mail.python.org/mailman/listinfo/pytho

Re: Getting milliseconds in Python

2005-02-16 Thread Diez B. Roggisch
mjs7231 wrote: > "Return the time as a floating point number expressed in seconds since > the epoch, in UTC. Note that even though the time is always returned as > a floating point number, not all systems provide time with a better > precision than 1 second. While this function normally returns >

Re: Getting milliseconds in Python

2005-02-16 Thread John Hunter
> "mjs7231" == mjs7231 <[EMAIL PROTECTED]> writes: mjs7231> This is no good, I am looking for milliseconds, not mjs7231> seconds.. as stated above. Well seconds/1000.0 = millseconds -- or are you worries about floating point error? 7 >>> from datetime import datetime 8 >>> dt = date

Re: Getting milliseconds in Python

2005-02-16 Thread mjs7231
"Return the time as a floating point number expressed in seconds since the epoch, in UTC. Note that even though the time is always returned as a floating point number, not all systems provide time with a better precision than 1 second. While this function normally returns non-decreasing values, it

Re: Getting milliseconds in Python

2005-02-16 Thread Diez B. Roggisch
mjs7231 wrote: > I am trying to record how long an operation takes, but can't seem to > find a function that will allow me to record the timestamp in > milliseconds, maybe I am looking in the wrong place? I have no idea where you look - but the time-module has IMHO a descriptive enough name - so

RE: Getting milliseconds in Python

2005-02-16 Thread Batista, Facundo
Title: RE: Getting milliseconds in Python [mjs7231] #- I am trying to record how long an operation takes, but can't seem to #- find a function that will allow me to record the timestamp in #- milliseconds, maybe I am looking in the wrong place? Use time.time(). >>> import