Threadsafe stopwatch