3 writes to _startTimeForCurrentState
Microsoft.Build (3)
BackEnd\Components\Scheduler\ScheduleTimeRecord.cs (3)
29
_startTimeForCurrentState
= DateTime.MinValue;
51
_startTimeForCurrentState
= currentTime;
62
_startTimeForCurrentState
= DateTime.MinValue;
4 references to _startTimeForCurrentState
Microsoft.Build (4)
BackEnd\Components\Scheduler\ScheduleTimeRecord.cs (4)
40
ErrorUtilities.VerifyThrow(
_startTimeForCurrentState
== DateTime.MinValue, "Can't get the accumulated time while the timer is still running.");
50
ErrorUtilities.VerifyThrow(
_startTimeForCurrentState
== DateTime.MinValue, "Cannot start the counter when it is already running.");
59
if (
_startTimeForCurrentState
!= DateTime.MinValue)
61
_accumulatedTime += currentTime -
_startTimeForCurrentState
;