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