added a timer
using time.time() instead of time.clock(); clock only measures CPU time, not walltime and is not consistent on modern CPUs who clockrate can vary