#include "VideoWrapperTime.h"
Functions | |
int | vw_gettimeofday (timeval *tp, struct timezone *tzp) |
Implementation of 'gettimeofday'. | |
timeval | TimevalSum (const timeval &tv1, const timeval &tv2) |
Calculates the sum of tv1 and tv2. | |
timeval | TimevalDiff (const timeval &tv1, const timeval &tv2) |
Calculates the diff between tv1 and tv2. | |
int | TimevalGreater (const timeval &tv1, const timeval &tv2) |
Tests two timeval structures for a greater-than relationship. | |
int | TimevalEqual (const timeval &tv1, const timeval &tv2) |
Tests two timeval structures for equality. | |
double | TimevalMsecs (const timeval &tv) |
Converts a timeval structure to milliseonds. | |
timeval | MsecsTimeval (const double dMsecs) |
Converts milliseconds to a timeval structure. |
Most functions have been copied from VRPN. Copyright 2005, Georgia Tech Research Corporation, Atlanta, Georgia 30332-0415 All Rights Reserved
|
Converts milliseconds to a timeval structure.
|
|
Calculates the diff between tv1 and tv2. Returns the diff in a timeval struct. Calculates negative times properly, with the appropriate sign on both tv_sec and tv_usec (these signs will match unless one of them is 0)
|
|
Tests two timeval structures for equality.
|
|
Tests two timeval structures for a greater-than relationship.
|
|
Converts a timeval structure to milliseonds.
|
|
Calculates the sum of tv1 and tv2. Returns the sum in an timeval struct. Calculates negative times properly, with the appropriate sign on both tv_sec and tv_usec (these signs will match unless one of them is 0). NOTE: both abs(tv_usec)'s must be < 1000000 (ie, normal timeval format)
|
|
Implementation of 'gettimeofday'. Although VC++ doesn't include a gettimeofday call, Cygnus Solutions Cygwin32 environment does, so this is not used when compiling with gcc under WIN32.
|