GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / dev > edspbs / rhel6-64


Interface   Data Structures   File List   Data Fields   Globals  

TMR.xx-x86-gcc.h File Reference

Provides the implementation of the timing macros on a X86 platform using the GCC compiler. More...


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.


Detailed Description

Provides the implementation of the timing macros on a X86 platform using the GCC compiler.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: TMR.xx-x86-gcc.h,v 1.3 2011/03/25 22:16:55 russell Exp $

ABSTRACT
x86 implementation of the TIMER facility. The implementation is based on-board CPU real time clock.
USAGE
See the documentation for the generic TMR facility.

Define Documentation

 
#define TMR_GET (  ) 

Value:

({                                                       \
          unsigned long long t;                                \
          __asm__ volatile (".byte 0x0f,0x31" : "=A"(t));      \
          (unsigned int)t;                                     \
      })
Macro to get the processor time.


Typedef Documentation

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.


Generated on Fri Nov 30 09:28:52 2012 by  doxygen 1.5.8