ack/plat/em/libsys/time.c
David Given 7eaa235fd1 Bodge the ancient em monitor library into building as a libsys for the em22
plat. It's completely untested, but it builds and makes e.out executables.
2018-06-13 21:44:25 +09:00

12 lines
184 B
C

/* $Id$ */
#include <sys/types.h>
#include <sys/timeb.h>
time_t
time(timpt) time_t *timpt ; {
struct timeb buf ;
ftime(&buf) ;
if ( timpt ) *timpt= buf.time ;
return buf.time ;
}