How to get high precision timer in python?

Ì

Ìð¹Ï

Howdy,

I use python2.5 in WindowsXP. If using time.time() as timer, it seems
the maximum precision is about 10-12ms. Maybe this is caused by
the time slice defined in process scheduler. However, in my project,
I have to get timer percision up to 1ms. What should I do? Do I have
to call Win32 API? Or simply promote python thread priority?

Regards,

ShenLei
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,835
Latest member
lila30

Latest Threads

Top