measuring a function time
Mahmood Naderan
nt_mahmood at yahoo.com
Thu Jul 29 08:34:01 EDT 2010
Hi,
I want to measure a function run time. I read
http://docs.python.org/library/time.html but I am confused and don't know which
one is suitable. I don't know is daylight timing important or not.... or is Y2K
issue important for my case or not.... I also don't know how epoch time is
related to my work.
I just want to do this (pseudocode):
start_time = get_current_time;
function();
end_time = get_current_time;
print (end_time - start_time)
the output should be 7600 (s) for example. What is the best and easiest way to
do that?
Thanks,
// Naderan *Mahmood;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100729/6d08f7f8/attachment.html>
More information about the Python-list
mailing list