David Ghandehari | b153652 | 2017-05-24 00:01:15 -0700 | [diff] [blame] | 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 | #include <export.h> |
| 11 | |
| 12 | class ANGLE_EXPORT Timer |
| 13 | { |
| 14 | public: |
| 15 | virtual ~Timer() {} |
| 16 | virtual void start() = 0; |
| 17 | virtual void stop() = 0; |
| 18 | virtual double getElapsedTime() const = 0; |
| 19 | }; |
| 20 | |
| 21 | ANGLE_EXPORT Timer *CreateTimer(); |
| 22 | |
| 23 | #endif // SAMPLE_UTIL_TIMER_H |