Updated Stopwatch to measure time more accurately