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