Synesis Software

time() API
[Synesis Software UNIX Emulation for Win32]


Detailed Description

Time functions and types.


Classes

struct  unixem_timeval
 A representation of current time, used by gettimeofday(). More...

Defines

#define timeval   unixem_timeval
 A representation of current time, used by gettimeofday().

Functions

int gettimeofday (struct timeval *tv, void *dummy)
 Accesses the current UTC time.
int unixem_gettimeofday (struct unixem_timeval *tv, void *dummy)
 Accesses the current UTC time.


Define Documentation

#define timeval   unixem_timeval

A representation of current time, used by gettimeofday().

This structure represents the time, in seconds and microseconds, since Jan. 1, 1970, in UTC. Returned by the gettimeofday() function.


Function Documentation

int gettimeofday ( struct timeval *  tv,
void *  dummy 
)

Accesses the current UTC time.

Retrieves the current time and timezone information, relative to Greenwich Mean Time

Parameters:
tv Pointer to a timeval structure to receive the time information
dummy This parameter is not used
Returns:
Always returns 0.
Note:
This is a macro, which resolves to unixem_gettimeofday()

int unixem_gettimeofday ( struct unixem_timeval tv,
void *  dummy 
)

Accesses the current UTC time.

Retrieves the current time and timezone information, relative to Greenwich Mean Time

Parameters:
tv Pointer to a timeval structure to receive the time information
dummy This parameter is not used
Returns:
Always returns 0.

References unixem_timeval::tv_sec, unixem_timeval::tv_usec, and unixem_internal_FILETIMEToUNIXTime().


UNIX Emulation for Win32 Libraries documentation © Synesis Software Pty Ltd, 2002-2010