mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
17 lines
260 B
C++
17 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 };
|
|
};
|