24 lines
332 B
C++
24 lines
332 B
C++
#include "Precompiled.h"
|
|
|
|
|
|
#include "RakiEngine/System/RakiTime.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace raki
|
|
{
|
|
|
|
f32 Time::getTime()
|
|
{
|
|
static OSTime timeBeginning = OSGetTime();
|
|
|
|
u64 microseconds = OSTicksToMicroseconds( OSGetTime() - timeBeginning );
|
|
|
|
return ( (f32) microseconds ) / 1000000.f;
|
|
}
|
|
|
|
|
|
|
|
}
|