[Pythonmac-SIG] two questions.....

Jack Jansen jack@oratrix.nl
Thu, 23 Dec 1999 11:08:51 +0100


> 
> One more quickie.... I'm trying to do some primitive profiling to see
> what the #&^#$ is taking all the time. I try to use time.time() but
> on the Mac for some reason it's resolution is 1.0 sec! Is there
> a more fine-grain timer out there that I could (easily?) use?

MacOS.GetTicks() gives the time in 1/60th second ticks since startup. But be 
aware that it'll wrap in a couple of weeks or so.
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm