Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Benchmarking.cs
1using System;
2
4{
8 public class Benchmarking : IDisposable
9 {
10 private readonly IBenchmarker benchmarker;
11 private readonly string name;
12 private readonly long m;
13 private readonly long n;
14 private readonly long startTicks;
15
24 internal Benchmarking(IBenchmarker Benchmarker, string Name, long N, long M,
25 long StartTicks)
26 {
27 this.benchmarker = Benchmarker;
28 this.name = Name;
29 this.n = N;
30 this.m = M;
31 this.startTicks = StartTicks;
32 }
33
37 public void Dispose()
38 {
39 this.benchmarker.Stop(this.name, this.n, this.m, this.startTicks);
40 }
41 }
42}
Class that keeps track of benchmarking results and timing.
Definition: Benchmarking.cs:9
void Dispose()
Stops the benchmarking test and disposes the object.
Definition: Benchmarking.cs:37
Class that keeps track of benchmarking results and timing.
Definition: IBenchmarker.cs:9