1
This commit is contained in:
parent
ce0c7e6cfa
commit
bcda7b7db8
14
f8/timer.cc
14
f8/timer.cc
@ -18,16 +18,26 @@ namespace f8
|
|||||||
void Timer::Init()
|
void Timer::Init()
|
||||||
{
|
{
|
||||||
initialized_ = true;
|
initialized_ = true;
|
||||||
|
xtimer_.Init
|
||||||
|
(
|
||||||
|
[] (void* context)
|
||||||
|
{
|
||||||
|
return a8::XGetTickCount();
|
||||||
|
},
|
||||||
|
this,
|
||||||
|
10,
|
||||||
|
1000
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Timer::UnInit()
|
void Timer::UnInit()
|
||||||
{
|
{
|
||||||
|
initialized_ = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Timer::Initialized()
|
bool Timer::Initialized()
|
||||||
{
|
{
|
||||||
|
return initialized_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Timer::Update()
|
void Timer::Update()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user