blob: b563131e396407a0508b7e5744ecd40c622575d7 [file] [log] [blame]
David Ghandeharib1536522017-05-24 00:01:15 -07001//
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
12class 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
21ANGLE_EXPORT Timer *CreateTimer();
22
23#endif // SAMPLE_UTIL_TIMER_H