time.time()
Terry Carroll
carroll at tjc.com
Sat Jan 24 19:24:45 EST 2004
On Sat, 24 Jan 2004 16:25:01 -0500, Bart Nessux <bart_nessux at hotmail.com>
wrote:
>Terry Carroll wrote:
>
>> It sounds like you're thinking time.time() does something else, which
>> you're trying to do. What is that? There might be another function for
>> you.
>
>I should have been more clear... here's the code:
>
>x = time.time()
>fp = os.popen("some_process", "r")
>fp.read()
>fp.close()
>print (time.time()-x/60)/60
Ah. You have a precedence problem.
Try:
print ((time.time()-x)/60)/60
More information about the Python-list
mailing list