[Tutor] Need some info on time module
Ignacio Vazquez-Abrams
ignacio@openservices.net
Thu, 27 Sep 2001 00:40:14 -0400 (EDT)
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>