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:
~Timer()13     virtual ~Timer() {}
14     virtual void start() = 0;
15     virtual void stop() = 0;
16     virtual double getElapsedTime() const = 0;
17 };
18 
19 Timer *CreateTimer();
20 
21 #endif // SAMPLE_UTIL_TIMER_H
22