GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / dev > edspbs / linux-gcc
Defines | |
#define | TMR_GET() |
Macro to get the processor time. | |
#define | TMR_TO_NSECS(_ticks) TMR_ticks_to_nsecs (_ticks) |
Convert a delta time in processor time units to nanoseconds. | |
#define | TMR_FORMAT "%16lld" |
Provides a uniform way to format timer ticks. | |
#define | TMR_DELTA(_beg, _end) ((_end) - (_beg)) |
Subtracts two times in ticks, returning the result in ticks. | |
#define | TMR_DELTA_IN_NSECS(_beg, _end) TMR_TO_NSECS(TMR_DELTA(_beg, _end)) |
Subtracts two times in tickss, returning the result in nanoseconds. | |
Typedefs | |
typedef unsigned long long | TMR_tick |
The abstract type of a TMR tick. |
CVS $Id: TMR.xx-x86-gcc.h,v 1.3 2011/03/25 22:16:55 russell Exp $
#define TMR_GET | ( | ) |
Value:
({ \ unsigned long long t; \ __asm__ volatile (".byte 0x0f,0x31" : "=A"(t)); \ (unsigned int)t; \ })
The abstract type of a TMR tick.
This is the abstract type returned by TMR_GET(). Since it varies on a machine-by-machine basis, no direct manipulation of this data type should be attempted. Use only the TMR routines and macros with this type.