Obtaining CPU Usage in Python

I was browsing through my personal codebase/codesnippets and I found a piece of code I wrote in 2007 that obtains CPU usage. It uses the Win32/COM Python extensions (http://sourceforge.net/projects/pywin32/). You can find it on the tdlabs forums — http://tdlabs.co.uk/forums/showthread.php?tid=13 Have fun.