2 writes to TotalTimeSinceStart
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Snapshot.cs (2)
55
TotalTimeSinceStart
= totalTimeSinceStart;
79
TotalTimeSinceStart
= TimeSpan.FromTicks(timeProvider.GetUtcNow().Ticks);
17 references to TotalTimeSinceStart
Microsoft.Extensions.Diagnostics.ResourceMonitoring (3)
Calculator.cs (2)
25
long runtimeTickDelta = second.
TotalTimeSinceStart
.Ticks - first.
TotalTimeSinceStart
.Ticks;
ResourceMonitorService.cs (1)
136
Log.SnapshotReceived(_logger, snapshot.
TotalTimeSinceStart
, snapshot.KernelTimeSinceStart, snapshot.UserTimeSinceStart, snapshot.MemoryUsageInBytes);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (14)
CalculatorTests.cs (10)
31
TimeSpan secondSnapshotTimeSpan = _firstSnapshot.
TotalTimeSinceStart
.Add(TimeSpan.FromSeconds(5));
34
long totalAvailableTicks = secondSnapshotTimeSpan.Ticks - _firstSnapshot.
TotalTimeSinceStart
.Ticks;
66
TimeSpan secondSnapshotTimeSpan = _firstSnapshot.
TotalTimeSinceStart
.Add(TimeSpan.FromSeconds(5));
69
long totalAvailableTicks = secondSnapshotTimeSpan.Ticks - _firstSnapshot.
TotalTimeSinceStart
.Ticks;
95
totalTimeSinceStart: _firstSnapshot.
TotalTimeSinceStart
.Add(TimeSpan.FromSeconds(5)),
127
totalTimeSinceStart: firstSnapshot.
TotalTimeSinceStart
.Add(TimeSpan.FromSeconds(5)),
144
TimeSpan secondSnapshotTimeSpan = _firstSnapshot.
TotalTimeSinceStart
.Add(TimeSpan.FromSeconds(5));
147
long totalAvailableTicks = secondSnapshotTimeSpan.Ticks - _firstSnapshot.
TotalTimeSinceStart
.Ticks;
175
TimeSpan secondSnapshotTimeSpan = _firstSnapshot.
TotalTimeSinceStart
.Add(TimeSpan.FromSeconds(5));
178
long totalAvailableTicks = secondSnapshotTimeSpan.Ticks - _firstSnapshot.
TotalTimeSinceStart
.Ticks;
IResourceUtilizationSnapshotProviderTests.cs (1)
27
Assert.Equal(DummyProvider.SnapshotTimeClock.GetUtcNow().Ticks, snapshot.
TotalTimeSinceStart
.Ticks);
ResourceUtilizationTests.cs (1)
26
Assert.Equal(default, snap.
TotalTimeSinceStart
);
SnapshotTests.cs (2)
19
Assert.Equal(time.GetUtcNow().Ticks, snapshot.
TotalTimeSinceStart
.Ticks);
23
Assert.Equal(time.GetUtcNow().Ticks, snapshot.
TotalTimeSinceStart
.Ticks);