Geoff Lang | 49be2ad | 2014-02-28 13:05:51 -0500 | [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 | class Timer |
| 11 | { |
| 12 | public: |
| 13 | virtual void start() = 0; |
| 14 | virtual void stop() = 0; |
| 15 | virtual double getElapsedTime() const = 0; |
| 16 | }; |
| 17 | |
Geoff Lang | 8def9aa | 2014-08-05 11:39:15 -0400 | [diff] [blame] | 18 | Timer *CreateTimer(); |
| 19 | |
Geoff Lang | 49be2ad | 2014-02-28 13:05:51 -0500 | [diff] [blame] | 20 | #endif // SAMPLE_UTIL_TIMER_H |