ack/plat/em/libsys/time.c

14 lines
216 B
C
Raw Permalink Normal View History

1994-06-24 14:02:31 +00:00
/* $Id$ */
1985-01-01 22:27:02 +00:00
#include <sys/types.h>
#include <sys/timeb.h>
2022-08-01 20:08:23 +00:00
extern void ftime(struct timeb* buf);
time_t time(time_t* timpt) {
1985-01-01 22:27:02 +00:00
struct timeb buf ;
ftime(&buf) ;
if ( timpt ) *timpt= buf.time ;
return buf.time ;
}