You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
278 B

#include <sys/timeb.h>
#include <sys/time.h>
/*
* I simply don't know what all these time-fns should do. Linus
*/
int ftime(struct timeb * tp)
{
time_t t;
if (time(&t)<0)
return -1;
tp->time = t;
tp->millitm = 0;
tp->timezone = -120;
tp->dstflag = 0;
return 0;
}