This commit is contained in:
Minexew 2014-11-28 09:58:56 +00:00
commit 419689f895
2 changed files with 5 additions and 0 deletions

View File

@ -9,3 +9,4 @@ const char* osStrError(u32 error);
u32 osGetFirmVersion();
u32 osGetKernelVersion();
u64 osGetTime();
u64 osGetMicros();

View File

@ -53,6 +53,10 @@ u64 osGetTime() {
return dt->date_time + offset;
}
u64 osGetMicros() {
return svcGetSystemTick() / (int)(TICKS_PER_MSEC / 1000);
}
u32 osGetFirmVersion() {
return (*(u32*)0x1FF80000) & ~0xFF;
}