blob: 8e7f4d4f6830c59d957f3004d5af02c9de877132 [file] [log] [blame]
Geoff Lang49be2ad2014-02-28 13:05:51 -05001//
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
10class Timer
11{
12 public:
13 virtual void start() = 0;
14 virtual void stop() = 0;
15 virtual double getElapsedTime() const = 0;
16};
17
Geoff Lang8def9aa2014-08-05 11:39:15 -040018Timer *CreateTimer();
19
Geoff Lang49be2ad2014-02-28 13:05:51 -050020#endif // SAMPLE_UTIL_TIMER_H