Fix: CBenchmark.Begin() with CBenchmark.End() throws an exception
This commit is contained in:
1 parent
8d54dd869f
commit
449f6ee833
1 file changed
+1
-1
@@ -64,7 +64,7 @@ namespace VocaluxeLib.Log
|
||||
public void Stop(bool success = true)
|
||||
{
|
||||
if (_Watch == null)
|
||||
throw new InvalidOperationException("Timer is not running.");
|
||||
return;
|
||||
_Watch.Stop();
|
||||
double duration = _GetElapsedTime(_Watch);
|
||||
|
||||
|
||||
Reference in new issue
Block a user