17 lines
446 B
C
17 lines
446 B
C
#ifndef _TIME_H
|
|
#define _TIME_H
|
|
|
|
typedef long time_t;
|
|
typedef unsigned long clock_t;
|
|
|
|
#define CLOCKS_PER_SEC 60 // IIgs vsync tick (placeholder)
|
|
|
|
time_t time(time_t *t);
|
|
clock_t clock(void);
|
|
|
|
// Initialise the IIgs Tool Locator so time() can call ReadTimeHex.
|
|
// Call once before any time() use. Idempotent — repeated calls
|
|
// are no-ops. clock() works regardless of whether this is called.
|
|
void iigsToolboxInit(void);
|
|
|
|
#endif
|