mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 10:19:47 -04:00
fe42da2744
Keeps both lines: master's PGXP session, draw-distance clamps, masked rejects and saturated-winding NCLIP; the release's render-pass kit additions, verified media/disc extents, timeline/present rings, cull-scale sites. Overlay ABI v30. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
26 lines
550 B
C
26 lines
550 B
C
/*
|
||
* host_time.h — cross-platform monotonic ms + high-res sleep.
|
||
*
|
||
* Windows netplay/pacing must not use GetTickCount64 / Sleep for short
|
||
* slices (coarse ~1–15.6 ms). Match recomp-net / BattleShip: QPC + waitable
|
||
* timer. Unix: CLOCK_MONOTONIC + usleep.
|
||
*/
|
||
#ifndef PSX_HOST_TIME_H
|
||
#define PSX_HOST_TIME_H
|
||
|
||
#include <stdint.h>
|
||
|
||
#ifdef __cplusplus
|
||
extern "C" {
|
||
#endif
|
||
|
||
uint64_t psx_host_mono_ms(void);
|
||
void psx_host_sleep_micros(unsigned usec);
|
||
void psx_host_sleep_ms(unsigned ms);
|
||
|
||
#ifdef __cplusplus
|
||
}
|
||
#endif
|
||
|
||
#endif /* PSX_HOST_TIME_H */
|