コード例 #1
0
ファイル: Stopwatches.cs プロジェクト: NextMethod/Tamarind
 public static IStopwatch CreateAndStart(Ticker ticker)
 {
     return Create(ticker).Start();
 }
コード例 #2
0
ファイル: Stopwatches.cs プロジェクト: NextMethod/Tamarind
        public static IStopwatch Create(Ticker ticker)
        {
            if (ticker == null) { return Create(); }

            return new TickerBackedStopwatch(ticker);
        }
コード例 #3
0
 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()));
 }
コード例 #6
0
 public TickerBackedStopwatch(Ticker ticker)
 {
     Ticker    = ticker;
     IsRunning = false;
 }