Utility class to measure time.
Add total computation time in statistics.