Merge 977522f92f
into 8dbe9d9128
This commit is contained in:
commit
419689f895
@ -9,3 +9,4 @@ const char* osStrError(u32 error);
|
||||
u32 osGetFirmVersion();
|
||||
u32 osGetKernelVersion();
|
||||
u64 osGetTime();
|
||||
u64 osGetMicros();
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user