mirror of
https://github.com/SirHumza/orbisRPC.git
synced 2026-10-06 12:00:39 +02:00
15 lines
543 B
C
15 lines
543 B
C
/* clock.h - monotonic time for measuring durations.
|
|
*
|
|
* Rule: wall clock (time(NULL)) is ONLY for values that must be wall
|
|
* clock (Discord epoch timestamps, log stamps). Every duration/deadline
|
|
* uses orbis_mono_s() so a clock jump can never break local timing.
|
|
*
|
|
* PS4: sceKernelGetProcessTime (microseconds, monotonic).
|
|
* Host: clock_gettime(CLOCK_MONOTONIC). */
|
|
#ifndef ORBISRPC_CLOCK_H
|
|
#define ORBISRPC_CLOCK_H
|
|
#include <stdint.h>
|
|
/* Monotonic seconds (arbitrary epoch, never goes backward). */
|
|
int64_t orbis_mono_s(void);
|
|
#endif
|