mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 04:52:39 +02:00
time: Add timeGetStandardSteadyClockInternalOffset [3.0.0+]
This commit is contained in:
parent
b4db31e536
commit
b0d96342e8
@ -96,6 +96,13 @@ void* timeGetSharedmemAddr(void);
|
|||||||
*/
|
*/
|
||||||
Result timeGetStandardSteadyClockTimePoint(TimeSteadyClockTimePoint *out);
|
Result timeGetStandardSteadyClockTimePoint(TimeSteadyClockTimePoint *out);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief [3.0.0+] Gets the internal offset for the standard steady clock.
|
||||||
|
* @param[out] out Output internal offset.
|
||||||
|
* @return Result code.
|
||||||
|
*/
|
||||||
|
Result timeGetStandardSteadyClockInternalOffset(s64 *out);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Gets the time for the specified clock.
|
* @brief Gets the time for the specified clock.
|
||||||
* @param[in] type Clock to use.
|
* @param[in] type Clock to use.
|
||||||
|
@ -170,6 +170,13 @@ Result timeGetStandardSteadyClockTimePoint(TimeSteadyClockTimePoint *out) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result timeGetStandardSteadyClockInternalOffset(s64 *out) {
|
||||||
|
if (hosversionBefore(3,0,0))
|
||||||
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
|
return serviceDispatchOut(&g_timeSteadyClock, 200, *out);
|
||||||
|
}
|
||||||
|
|
||||||
Result timeGetCurrentTime(TimeType type, u64 *timestamp) {
|
Result timeGetCurrentTime(TimeType type, u64 *timestamp) {
|
||||||
Service *srv = timeGetServiceSession_SystemClock(type);
|
Service *srv = timeGetServiceSession_SystemClock(type);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user