//1// Copyright 2019 The ANGLE Project Authors. All rights reserved.2// Use of this source code is governed by a BSD-style license that can be3// found in the LICENSE file.4//56#ifndef SAMPLE_UTIL_TIMER_H7#define SAMPLE_UTIL_TIMER_H89class Timer final10{11public:12Timer();13~Timer() {}1415// Use start() and stop() to record the duration and use getElapsedTime() to query that16// duration. If getElapsedTime() is called in between, it will report the elapsed time since17// start().18void start();19void stop();20double getElapsedTime() const;2122private:23bool mRunning;24double mStartTime;25double mStopTime;26};2728#endif // SAMPLE_UTIL_TIMER_H293031