delorie.com/djgpp/doc/libc/libc_367.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <sys/timeb.h> int ftime(struct timeb *buf); |
This function stores the current time in the structure buf. The
format of struct timeb
is:
struct timeb { time_t time; /* seconds since 00:00:00 GMT 1/1/1970 */ unsigned short millitm; /* milliseconds */ short timezone; /* difference between GMT and local, * minutes */ short dstflag; /* set if daylight savings time in affect */ }; |
Zero on success, nonzero on error.
ANSI/ISO C | No |
POSIX | No |
struct timeb t; ftime(&t); |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |