Grid Community Toolkit
6.2.1567772254 (tag: v6.2.20190906)
|
Time Types and Macros. More...
Go to the source code of this file.
Macros | |
#define | GlobusTimeAbstimeSet(Abstime, Sec, USec) |
#define | GlobusTimeAbstimeGet(Abstime, Sec, USec) |
#define | GlobusTimeReltimeSet(Reltime, Sec, USec) |
#define | GlobusTimeAbstimeDiff(Reltime, T1, T2) |
#define | GlobusTimeReltimeToUSec(SlpInt, Reltime) |
#define | GlobusTimeReltimeToMilliSec(Milliseconds, Reltime) |
#define | GlobusTimeAbstimeInc(Abstime, Reltime) |
#define | GlobusTimeAbstimeGetCurrent(Abstime) |
#define | GlobusTimeAbstimeCopy(Dest, Src) |
#define | GlobusTimeReltimeCopy(Dest, Src) |
#define | GlobusTimeReltimeMultiply(Reltime, Factor) |
#define | GlobusTimeReltimeDivide(Reltime, Factor) |
Functions | |
globus_bool_t | globus_time_has_expired (const globus_abstime_t *abstime) |
globus_bool_t | globus_time_abstime_is_infinity (const globus_abstime_t *abstime) |
globus_bool_t | globus_time_reltime_is_infinity (const globus_reltime_t *reltime) |
int | globus_abstime_cmp (const globus_abstime_t *abstime_1, const globus_abstime_t *abstime_2) |
int | globus_reltime_cmp (const globus_reltime_t *reltime_1, const globus_reltime_t *reltime_2) |
Time Types and Macros.
#define GlobusTimeAbstimeCopy | ( | Dest, | |
Src | |||
) |
Copy the absolute time
#define GlobusTimeAbstimeDiff | ( | Reltime, | |
T1, | |||
T2 | |||
) |
Find the difference between the 2 absolute times.
#define GlobusTimeAbstimeGet | ( | Abstime, | |
Sec, | |||
USec | |||
) |
Seperates abstime structure into its components,sec and usec.
#define GlobusTimeAbstimeGetCurrent | ( | Abstime | ) |
Get the current time
#define GlobusTimeAbstimeInc | ( | Abstime, | |
Reltime | |||
) |
Add reltime to abstime
#define GlobusTimeAbstimeSet | ( | Abstime, | |
Sec, | |||
USec | |||
) |
Set the abstime structure to the sec and usec parameter values.
#define GlobusTimeReltimeCopy | ( | Dest, | |
Src | |||
) |
Copy the relative time
#define GlobusTimeReltimeDivide | ( | Reltime, | |
Factor | |||
) |
divide the reltime by factor
#define GlobusTimeReltimeMultiply | ( | Reltime, | |
Factor | |||
) |
Multiple the reltime by factor
#define GlobusTimeReltimeSet | ( | Reltime, | |
Sec, | |||
USec | |||
) |
Set the reltime structure to the sec and usec parameter values.
#define GlobusTimeReltimeToMilliSec | ( | Milliseconds, | |
Reltime | |||
) |
Convert a relative time into a long in millisec units
#define GlobusTimeReltimeToUSec | ( | SlpInt, | |
Reltime | |||
) |
Convert a relitive time into a long in usec units
int globus_abstime_cmp | ( | const globus_abstime_t * | abstime_1, |
const globus_abstime_t * | abstime_2 | ||
) |
Compare two absolute times.
This function returns an integer that reflects the comparison of two abstimes in the following way.
0 : values are the same. -1 : the first value is less than the second. 1 : the first value is greater than the second.
int globus_reltime_cmp | ( | const globus_reltime_t * | reltime_1, |
const globus_reltime_t * | reltime_2 | ||
) |
Compare two absolute times.
This function returns an integer that reflects the comparison of two reltimes in the following way.
0 : values are the same. -1 : the first value is less than the second. 1 : the first value is greater than the second.
globus_bool_t globus_time_abstime_is_infinity | ( | const globus_abstime_t * | abstime | ) |
Returns a boolean that reflects whether or not abstime is infinity.
globus_bool_t globus_time_has_expired | ( | const globus_abstime_t * | abstime | ) |
Has abstime expired
Returns a boolean that reflects whether or not abstime is less than the current time.
globus_bool_t globus_time_reltime_is_infinity | ( | const globus_reltime_t * | reltime | ) |
Returns a boolean that reflects whether or not reltime is infinity.