mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 15:08:12 +00:00
16 lines
260 B
C++
16 lines
260 B
C++
#pragma once
|
|
|
|
#include <time.h>
|
|
|
|
class GElapsedTimer {
|
|
public:
|
|
GElapsedTimer() { }
|
|
|
|
bool is_valid() const { return m_valid; }
|
|
void start();
|
|
int elapsed() const;
|
|
|
|
private:
|
|
bool m_valid { false };
|
|
struct timeval m_start_time { 0, 0 };
|
|
};
|