[Tutor] Need some info on time module
Sreenidhi.B.G
nidhi@ncoretech.com
Thu, 27 Sep 2001 11:04:19 +0530
thanks for your response,
but i would like to know if there is an equivalent of the function clock() in
python.
regards,
-sreenidhi,
Ignacio Vazquez-Abrams wrote:
> On Thu, 27 Sep 2001, Sreenidhi.B.G wrote:
>
> > I need some info on how to get system time and keep track of that, say for
> > example , time required to execute a set of instructions,
> > i'm using ctime from the time module, but i need a resolution in millisecs,
> > can you help me,
>
> ti=time.time()
> dosomething()
> tf=time.time()
> elapsed=tf-ti
>
> No guarantee that you'll get microseconds though...
>
> --
> Ignacio Vazquez-Abrams <ignacio@openservices.net>
>
> _______________________________________________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor