29 lines
360 B
C++
29 lines
360 B
C++
#include "Precompiled.h"
|
|
|
|
|
|
#include <sys/sys_time.h>
|
|
|
|
|
|
|
|
#include "RakiEngine/System/RakiTime.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace raki
|
|
{
|
|
|
|
f32 Time::getTime()
|
|
{
|
|
static system_time_t timeBeginning = sys_time_get_system_time();
|
|
|
|
system_time_t duration = sys_time_get_system_time() - timeBeginning;
|
|
|
|
return ( (f32) duration ) / 1000000.f;
|
|
}
|
|
|
|
|
|
|
|
}
|