ack/plat/em/libsys/time.c
2022-08-01 22:08:23 +02:00

14 lines
216 B
C

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