2014-02-28 22:05:51 +04:00
|
|
|
//
|
|
|
|
// Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef SAMPLE_UTIL_TIMER_H
|
|
|
|
#define SAMPLE_UTIL_TIMER_H
|
|
|
|
|
|
|
|
class Timer
|
|
|
|
{
|
|
|
|
public:
|
2015-04-06 19:02:37 +03:00
|
|
|
virtual ~Timer() {}
|
2014-02-28 22:05:51 +04:00
|
|
|
virtual void start() = 0;
|
|
|
|
virtual void stop() = 0;
|
|
|
|
virtual double getElapsedTime() const = 0;
|
|
|
|
};
|
|
|
|
|
2014-08-05 19:39:15 +04:00
|
|
|
Timer *CreateTimer();
|
|
|
|
|
2014-02-28 22:05:51 +04:00
|
|
|
#endif // SAMPLE_UTIL_TIMER_H
|