Objective Systems, Inc.  

ooDateTime.h File Reference

Time functions that reconcile differences between Windows and UNIX. More...

#include "ooCommon.h"
#include <time.h>

Go to the source code of this file.

Functions

EXTERN int ooGetTimeOfDay (struct timeval *tv, struct timezone *tz)
 This function provides an abstraction for the UNIX 'gettimeofday' function which is not available on Windows.
EXTERN long ooGetTimeDiff (struct timeval *tv1, struct timeval *tv2)
 This function subtracts first timeval parameter from second and provides the difference in milliseconds.


Detailed Description

Time functions that reconcile differences between Windows and UNIX.

Definition in file ooDateTime.h.


Function Documentation

EXTERN int ooGetTimeOfDay ( struct timeval *  tv,
struct timezone *  tz 
)

This function provides an abstraction for the UNIX 'gettimeofday' function which is not available on Windows.

Parameters:
tv Pointer to time value structure to receive current time value.
tz Point to time zone information.
Returns:
Completion status of operation: 0 = success, negative return value is error.

EXTERN long ooGetTimeDiff ( struct timeval *  tv1,
struct timeval *  tv2 
)

This function subtracts first timeval parameter from second and provides the difference in milliseconds.

Parameters:
tv1 Pointer to timeval value.
tv2 Pointer to timeval value.
Returns:
Difference between two timevals in milliseconds.


This file was last modified on 28 May 2010.
Objective Open H.323 Stack, 0.9.1