Replace package 'time' with 'clock' to fix timer precision on Windows.  Only tested on Windows 7.