Integrate serialization with the stopwatch