ftime

Returns the elapsed time since 00:00:00, January 1, 1970, in the structure pointed at by timeptr.

Format

#include  <timeb.h>

int ftime  (struct timeb *timeptr);
Function Variants Compiling with the _DECC_V4_SOURCE and _VMS_V6_SOURCE feature- test macros defined enables a local-time-based entry point to this function that is equivalent to the behavior before OpenVMS Version 7.0.

Argument

timeptr
A pointer to the structure timeb_t.

Description

The typedef timeb_t refers to the following structure defined in the <timeb.h> header file:
typedef struct timeb
   {
      time_t         time;
      unsigned short millitm;
      short          timezone;
      short          dstflag;
   };

The member time gives the time in seconds; the member millitm gives the fractional time in milliseconds; the members timezone and dstflag (daylight savings time flag) are always 0.

Return Values
Successful execution. The timeb_ t structure is filled in. 
-1  Indicates an error. 


Previous Page | Next Page | Table of Contents | Index