clock() returned negative on one machine, had to change how the timing was done to fix that