Go to the first, previous, next, last section, table of contents.


ftime

Syntax

#include <sys/timeb.h>

int ftime(struct timeb *buf);

Description

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 */
};

Return Value

Zero on success, nonzero on error.

Portability

not ANSI, not POSIX

Example

struct timeb t;
ftime(&t);


Go to the first, previous, next, last section, table of contents.