Archives
My Blog is moving to gerrardconsulting.com
Submitted by Paul Gerrard on Thu, 03/12/2009 - 17:03.I haven't blogged for a while because I have been working on my new website. It has just gone live at www.gerrardconsulting.com
Like this site, it uses Drupal as a platform. My blog is moving to the new site. I'll continue to post blogs on the www.uktmf.com site, but only to make announcements regarding the Test Management Forums and Summit.
So here are the new blog and blog feed details:
Please change your news reader accordingly :-)
The www.uktmf.com website will take this feed and display my posts here. I'll be copying some, but probably not all, of the old posts to the new site. I've got lots of stuff I'd like to talk about queued up - watch this space.
Python - Accurate Cross Platform Timers - time.time() vs. time.clock()
Submitted by corey@goldb.org (Corey Goldberg) on Thu, 03/12/2009 - 17:27.In Python, you can add simple timers around any action using the clock() or time() functions from the time module. time.clock() gives the best timer accuracy on Windows, while the time.time() function gives the best accuracy on Unix/Linux. You should use whichever one is more appropriate for your system.
Inside the timeit module's source code (in Python's standard library), you can see an example of this. The timer type is specified by the platform:
