ladybird/Libraries/LibCore/CElapsedTimer.h

19 lines
275 B
C
Raw Normal View History

#pragma once
#include <sys/time.h>
class CElapsedTimer {
public:
CElapsedTimer() {}
bool is_valid() const { return m_valid; }
void start();
int elapsed() const;
private:
bool m_valid { false };
struct timeval m_start_time {
0, 0
};
};