now() public static method

public static now ( ) : float
return float
示例#1
0
        public Stopwatch() {
            this._start = InstrumentationUtils.now();
            this._currentSample = 0;
            float delta = 0f;

            this._laps = new float[InstrumentationUtils.kMaxSamples];
            for (int i = 0; i < this._laps.Length; i++) {
                this._laps[i] = delta;
            }
        }
示例#2
0
 public void stop()
 {
     this._laps[this._currentSample] = InstrumentationUtils.now() - this._start;
 }
示例#3
0
 public void start()
 {
     this._start         = InstrumentationUtils.now();
     this._currentSample = (this._currentSample + 1) % InstrumentationUtils.kMaxSamples;
 }