public async Task <T> Await <T>(Func <Task <T> > inner) { Started = _timeline.Capture(); try { return(await inner.Invoke()); } finally { Finished = _timeline.Capture(); } }
public IStopwatch Start() { Started = _timelineProvider.Capture(); _timeline.Enqueue(this); return(this); }