#include <sys/timeb.h>
int ftime(struct timeb *tp);
struct timeb {
time_t time;
unsigned short millitm;
short timezone;
short dstflag;
};
#include <stdio.h>
#include <sys/timeb.h>
int main()
{
struct timeb tp;
ftime(&tp);
printf ("time: %d\n", tp.time);
printf ("millitm: %d\n", tp.millitm);
printf ("timezone: %d\n", tp.timezone);
printf ("dstflag: %d\n", tp.dstflag);
return 0;
}
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |