implement app_timer_real
This commit is contained in:
parent
35dbed1ae9
commit
b7a580e86a
@ -12,6 +12,20 @@
|
|||||||
|
|
||||||
#include "apps.h"
|
#include "apps.h"
|
||||||
|
|
||||||
|
double
|
||||||
|
app_timer_real(int get)
|
||||||
|
{
|
||||||
|
static __int64 start;
|
||||||
|
__int64 now;
|
||||||
|
|
||||||
|
now = GetTickCount64();
|
||||||
|
if (get) {
|
||||||
|
return (now - start) / 1000.0;
|
||||||
|
}
|
||||||
|
start = now;
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
|
|
||||||
double
|
double
|
||||||
app_timer_user(int stop)
|
app_timer_user(int stop)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user