Override toString() for Stopwatch and Counter.