StopWatch.setTimeElapsed

void setTimeElapsed(Duration timeElapsed) @safe nothrow @nogc

Sets the total time which the StopWatch has been running (i.e. what peek returns).

The StopWatch does not have to be stopped for setTimeElapsed to be called, nor will calling it cause the StopWatch to stop.