Computes hertz for n operations.
operations
double computeHertz(int operations) { return operations / elapsedTimeSec; }