Home | History | Annotate | Download | only in util
      1 //
      2 // Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
      3 // Use of this source code is governed by a BSD-style license that can be
      4 // found in the LICENSE file.
      5 //
      6 
      7 #ifndef SAMPLE_UTIL_TIMER_H
      8 #define SAMPLE_UTIL_TIMER_H
      9 
     10 class Timer
     11 {
     12   public:
     13     virtual void start() = 0;
     14     virtual void stop() = 0;
     15     virtual double getElapsedTime() const = 0;
     16 };
     17 
     18 Timer *CreateTimer();
     19 
     20 #endif // SAMPLE_UTIL_TIMER_H
     21