Hash :
fe2f3d63
        
        Author :
  
        
        Date :
2015-05-05T17:37:39
        
      
Add a basic support for Linux for utils/ * 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 <geofflang@chromium.org> Tested-by: Corentin Wallez <cwallez@chromium.org>
//
// 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