Index

zydeco / 5a717fe

Experiment in graphics programming, C++, OpenGL, simulation techniques.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
703 Sep 2023 16:015f524c5OpenGL render abstractionsJosh Stockin1250G

Blob @ zydeco / include / ITimer.hpp

text/plain456 bytesdownload raw
1#ifndef ITIMER_HPP_
2#define ITIMER_HPP_
3
4
5#include <cstdint>
6#include "IUpdateable.hpp"
7
8
9class ITimer : public IUpdateable
10{
11public:
12 // IUpdateable
13 virtual bool Update() = 0;
14
15 // ITimer
16 virtual void Reset() = 0;
17 virtual void SetTimeout(uint64_t timeout_ms) = 0;
18 virtual void Start() = 0;
19 virtual void Stop() = 0;
20 virtual bool IsExpired() = 0;
21 virtual uint64_t *GetGlobalTimePointer() = 0;
22};
23
24
25#endif /* ITIMER_HPP_ */
26