Example #1
0
 public static IStopwatch CreateAndStart(Ticker ticker)
 {
     return Create(ticker).Start();
 }
Example #2
0
        public static IStopwatch Create(Ticker ticker)
        {
            if (ticker == null) { return Create(); }

            return new TickerBackedStopwatch(ticker);
        }
 public TickerBackedStopwatch(Ticker ticker)
 {
     Ticker = ticker;
     IsRunning = false;
 }
Example #4
0
 public static IStopwatch CreateAndStart(Ticker ticker)
 {
     return(Create(ticker).Start());
 }
Example #5
0
 public static IStopwatch Create()
 {
     return(new TickerBackedStopwatch(Ticker.SystemStopwatchBackedTicker()));
 }
 public TickerBackedStopwatch(Ticker ticker)
 {
     Ticker    = ticker;
     IsRunning = false;
 }