GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBS / V2-12-1 > pbs / rhel6-32
#include <PBS/PTS.h>
Classes | |
struct | _TMR_usecs_nsecs |
Structure to hold the time in terms of two integers, one giving the number of micro-seconds, the other the number of milliseconds. More... | |
Defines | |
#define | TMR_GET() PTS_GETS() |
Macro to get the processor time. | |
#define | TMR_TO_NSECS(_ticks) PTS_PTUS_TO_NSECS(_ticks) |
Convert a time processor time ticks to nanoseconds. | |
#define | TMR_DELTA(_beg, _end) PTS_DELTAS(_beg, _end) |
Subtracts two times in ticks, returning the result in ticks. | |
#define | TMR_DELTA_IN_NSECS(_beg, _end) PTS_DELTAS_IN_NSECS(_beg, _end) |
Subtracts two times in tickss, returning the result in nanoseconds. | |
Typedefs | |
typedef unsigned int | TMR_tick |
The type of an elapsed unit of time. | |
typedef struct _TMR_usecs_nsecs | TMR_usecs_nsecs |
Typedef for struct _TMR_usecs_nsecs. | |
Functions | |
unsigned int | TMR_ticks_to_nsecs (TMR_tick ticks) |
Convert a number of ticks to nanoseconds. | |
TMR_usecs_nsecs | TMR_ticks_to_usecs_nsecs (TMR_tick ticks) |
Convert a number of ticks useconds.nanoseconds. |
CVS $Id: TMR.h,v 1.4 2011/03/24 23:05:44 apw Exp $
TMR_tick beg; TMR_tick end; TMR_tick elapsed; beg = TMR_GET(); . eventToTime (); . end = TMR_GET(); elapsed = end - beg; printf ("Begin Time: %8d ticks\n", beg); printf ("End Time: %8d ticks\n", end); printf ("Elasped Time: %8d ticks\n", elapsed); printf ("Elasped Time: %8d"ticks\n", TMR_TO_NSECS (elapsed);
#define TMR_DELTA | ( | _beg, | |||
_end | ) | PTS_DELTAS(_beg, _end) |
Subtracts two times in ticks, returning the result in ticks.
_beg | The beginning time in processor timer ticks | |
_end | The ending time in processor timer ticks |
#define TMR_DELTA_IN_NSECS | ( | _beg, | |||
_end | ) | PTS_DELTAS_IN_NSECS(_beg, _end) |
Subtracts two times in tickss, returning the result in nanoseconds.
_beg | The beginning time in processor timer ticks | |
_end | The ending time in processor timer ticks |
#define TMR_TO_NSECS | ( | _ticks | ) | PTS_PTUS_TO_NSECS(_ticks) |
Convert a time processor time ticks to nanoseconds.
_ticks | The value to convert |
Referenced by TMR_ticks_to_nsecs(), and TMR_ticks_to_usecs_nsecs().
unsigned int TMR_ticks_to_nsecs | ( | TMR_tick | ticks | ) |
Convert a number of ticks to nanoseconds.
ticks | The number of ticks to convert to nanoseconds |
References TMR_TO_NSECS.
TMR_usecs_nsecs TMR_ticks_to_usecs_nsecs | ( | TMR_tick | ticks | ) |
Convert a number of ticks useconds.nanoseconds.
ticks | The number of ticks to convert |
References _TMR_usecs_nsecs::nsecs, TMR_TO_NSECS, and _TMR_usecs_nsecs::usecs.