Simple implementation of a chronometer.