os.clock() too inaccurate, using autoincremented value to track time.