Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions test/OpenTelemetry.Tests/Metrics/MetricAPITest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,7 @@ void ProcessExport(Batch<Metric> batch)
// Block until all threads started.
mreToEnsureAllThreadsStarted.WaitOne();

Stopwatch sw = new Stopwatch();
sw.Start();
Stopwatch sw = Stopwatch.StartNew();

// unblock all the threads.
// (i.e let them start counter.Add)
Expand Down Expand Up @@ -354,8 +353,7 @@ void ProcessExport(Batch<Metric> batch)
// Block until all threads started.
mreToEnsureAllThreadsStarted.WaitOne();

Stopwatch sw = new Stopwatch();
sw.Start();
Stopwatch sw = Stopwatch.StartNew();

// unblock all the threads.
// (i.e let them start counter.Add)
Expand Down
3 changes: 1 addition & 2 deletions test/StressTestMetrics/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ public static void Main(string[] args)
using var meterProvider = Sdk.CreateMeterProviderBuilder()
.AddSource("TestMeter")
.Build();
Stopwatch sw = new Stopwatch();
sw.Start();
Stopwatch sw = Stopwatch.StartNew();

Parallel.Invoke(
() =>
Expand Down