[Tutor] how to convert usec/pass to seconds

Steven D'Aprano steve at pearwood.info
Sat Jan 28 23:48:29 CET 2012


Surya K wrote:
> I am actually using a activestate wrapper for calculating execution time of my program.
[...]
> I tested it for a puzzle and that showed me around 1385.33 usec/sec..However, as its from facebook hackers cup where I got a penalty time of 28.32.00 (not exactly, forgot).. 
> what units facebook was following.. If I had to change those usec/pass units to seconds, what I have to use.
> can anyone tell me?

1 second = 1000000 microseconds

Strictly speaking, it should be μs rather than usec.

http://en.wikipedia.org/wiki/SI_prefix#List_of_SI_prefixes


-- 
Steven



More information about the Tutor mailing list