Velocity Reviews > Getting milliseconds in Python

# Getting milliseconds in Python

Brian Beck
Guest
Posts: n/a

 02-16-2005
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

Curt
Guest
Posts: n/a

 02-17-2005
On 2005-02-16, Brian Beck <(E-Mail Removed)> 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)

Brian Beck
Guest
Posts: n/a

 02-17-2005
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 *multiply* by a
thousand to get the number of milliseconds.

2 seconds * 1000 = 2000 milliseconds

So, aside from the 100 in the original post, it may look misleading, but
that is what he would need to do...

--
Brian Beck

Martin Christensen
Guest
Posts: n/a

 02-17-2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Brian" == Brian Beck <(E-Mail Removed)> 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 public key: http://www.cs.auc.dk/~factotum/gpgkey.txt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using Mailcrypt+GnuPG <http://www.gnupg.org>

iEYEARECAAYFAkIUxPkACgkQYu1fMmOQldXH3QCdGcw3grK/R17kfakMBhxU1Io/
4ukAoJl+gysL9q/6j1G8LYPZz7NawEV+
=1CNL
-----END PGP SIGNATURE-----

Brian Beck
Guest
Posts: n/a

 02-17-2005
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

Martin Christensen
Guest
Posts: n/a

 02-17-2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Brian" == Brian Beck <(E-Mail Removed)> 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 mind a cartoon where a
group of doctors were performing open heart surgery. One of them says,
"Okay, how many of us believe that the heart has _four_ chambers?,"
and a few of the others raise their hands. I intended it as a 'let's
call in the professors to determine if 2+2=4', but, well...

Martin

- --
Homepage: http://www.cs.auc.dk/~factotum/
GPG public key: http://www.cs.auc.dk/~factotum/gpgkey.txt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using Mailcrypt+GnuPG <http://www.gnupg.org>

iEYEARECAAYFAkIUyzAACgkQYu1fMmOQldWVdACdHLxtUi4TtF Cl0ZW6wf65Hu9M
ioMAoMWAHrkS5lhQw5V0cJXVO1nk76MO
=6MXl
-----END PGP SIGNATURE-----