|
@@ -25,7 +25,12 @@ namespace InABox.Core
|
|
|
public long GetElapsedMilliseconds() => _stopwatch.ElapsedMilliseconds;
|
|
|
public void Pause() => _stopwatch.Stop();
|
|
|
public void Resume() => _stopwatch.Start();
|
|
|
- public void Restart() => _stopwatch.Restart();
|
|
|
+ public long Restart()
|
|
|
+ {
|
|
|
+ var ms = _stopwatch.ElapsedMilliseconds;
|
|
|
+ _stopwatch.Restart();
|
|
|
+ return ms;
|
|
|
+ }
|
|
|
|
|
|
public void Log()
|
|
|
{
|