public static double GetPreciseElapsedTime(this Instrumentation instrumentation)
        {
            var fieldInfo = typeof(Instrumentation).GetField("_startedAt", BindingFlags.Instance | BindingFlags.NonPublic);
            var startedAt = (DateTime)fieldInfo.GetValue(instrumentation);

            return(new TimeSpan(DateTime.Now.Ticks - startedAt.Ticks).TotalSeconds);
        }
 public static long GetReallyPreciseElapsedTime(this Instrumentation instrumentation)
 {
     return(_Stopwatches[instrumentation.Id].ElapsedMilliseconds);
 }
 public static void StartWithPrecision(this Instrumentation instrumentation)
 {
     _Stopwatches[instrumentation.Id] = Stopwatch.StartNew();
 }