Exemple #1
0
 public static IStopwatch CreateAndStart(Ticker ticker)
 {
     return Create(ticker).Start();
 }
Exemple #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;
 }
Exemple #4
0
 public static IStopwatch CreateAndStart(Ticker ticker)
 {
     return(Create(ticker).Start());
 }
Exemple #5
0
 public static IStopwatch Create()
 {
     return(new TickerBackedStopwatch(Ticker.SystemStopwatchBackedTicker()));
 }
 public TickerBackedStopwatch(Ticker ticker)
 {
     Ticker    = ticker;
     IsRunning = false;
 }