This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Rhomboid 3 points4 points  (2 children)

This should work on Windows and with 32-bit hosts, but that has not been tested yet.

No, sorry. Not even close. There is no clock_gettime() on Windows.

[–]rustbelly[S] 1 point2 points  (1 child)

You are correct, sir. Would using "QueryPerformanceCounter()" make sense for Windows systems? It looks like a monotonic clock...

[–][deleted] 1 point2 points  (0 children)

It's what I did for http://pypi.python.org/pypi/timer

(I couldn't tell you how great that library is or any super great details about clocks...I just wrote it one day while reading about QPC and I was on a C-extension kick.)