Added Clock
This commit is contained in:
parent
cf859223ab
commit
a3726d0887
6 changed files with 74 additions and 25 deletions
20
include/structures/Clock.hpp
Normal file
20
include/structures/Clock.hpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
#include "Util.hpp"
|
||||
#include "Time.hpp"
|
||||
|
||||
SDLU_BEGIN
|
||||
|
||||
class Clock
|
||||
{
|
||||
public:
|
||||
Clock();
|
||||
|
||||
Time GetElapsedTime();
|
||||
Time Restart();
|
||||
|
||||
private:
|
||||
Time lastTime;
|
||||
};
|
||||
|
||||
SDLU_END
|
Loading…
Add table
Add a link
Reference in a new issue