Files
CydandClaude Fable 5 db7745fcd0 sda4: commit the Glaze developer hard-drive dump
Un-ignored: the dev drive is the ground truth the restoration and
emulator work constantly reference (DPL3/LIBDPL + VRENDER i860 renderer
source, BT/RP live+dev game trees, VGL_LABS pod boot, scene/audio
content). Kept in-repo for the pod-owner community.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 19:41:15 -05:00

31 lines
535 B
C++

#ifdef EVAT /* executing on the EVAT */
#include <sys/types.h>
#include <sys/times.h>
#define HZ 150
struct tms mybuffer;
float second_()
{
times (&mybuffer);
return ((double) mybuffer.tms_utime / HZ);
}
#else
static float lastTime = 0.0;
float second_()
{
/*we've got a 1 usec timer*/
float time =(float)times(0) / 1000000.0;
/*check for wrap arround, every 2^32 usecs */
if ( time < lastTime)
time +=4294.967295;
lastTime = time;
return time;
}
#endif /* which host */