Capture() public méthode

public Capture ( ) : System.TimeSpan
Résultat System.TimeSpan
 public async Task <T> Await <T>(Func <Task <T> > inner)
 {
     Started = _timeline.Capture();
     try
     {
         return(await inner.Invoke());
     }
     finally
     {
         Finished = _timeline.Capture();
     }
 }
Exemple #2
0
 public IStopwatch Start()
 {
     Started = _timelineProvider.Capture();
     _timeline.Enqueue(this);
     return(this);
 }