mirror of
https://github.com/utmapp/angle.git
synced 2026-12-02 06:31:32 -10:00
* Timer and path utils are done. * Window only implements initialize and setVisible BUG=angleproject:892 Change-Id: I3f49b68ef9ec5be324b25e211199bac2953ae11e Reviewed-on: https://chromium-review.googlesource.com/269520 Reviewed-by: Geoff Lang <[email protected]> Tested-by: Corentin Wallez <[email protected]>
32 lines
632 B
C++
32 lines
632 B
C++
//
|
|
// Copyright (c) 2015 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.
|
|
//
|
|
|
|
// LinuxTimer.h: Definition of a high precision timer class on Linux
|
|
|
|
#ifndef UTIL_LINUX_TIMER_H
|
|
#define UTIL_LINUX_TIMER_H
|
|
|
|
#include <time.h>
|
|
|
|
#include "Timer.h"
|
|
|
|
class LinuxTimer : public Timer
|
|
{
|
|
public:
|
|
LinuxTimer();
|
|
|
|
void start() override;
|
|
void stop() override;
|
|
double getElapsedTime() const override;
|
|
|
|
private:
|
|
bool mRunning;
|
|
struct timespec mStartTime;
|
|
struct timespec mStopTime;
|
|
};
|
|
|
|
#endif // UTIL_LINUX_TIMER_H
|