GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / dev > edspbs / sun-gcc
#include <impl/TMR.xx-xxx-xxx.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... | |
Typedefs | |
typedef struct _TMR_usecs_nsecs | TMR_usecs_nsecs |
Typedef for struct _TMR_usecs_nsecs. | |
Functions | |
int | TMR_initialize (void) |
Initializes the TMR facility. | |
TMR_tick | TMR_nsecs_to_ticks (int nanoseconds) |
Convert a number of nanoseconds to PTUs. | |
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. | |
unsigned int | TMR_frequency (void) |
Get the frequency of the processor timer. |
CVS $Id: TMR.h,v 1.4 2011/03/25 22:16:55 russell Exp $
TMR_tick beg; TMR_tick end; TMR_tick elapsed; beg = TMR_GET(); . eventToTime (); . end = TMR_GET(); elapsed = end - beg; printf ("Begin Time: " TMR_FORMAT "tickss\n", beg); printf ("End Time: " TMR_FORMAT "ticks\n", end); printf ("Elasped Time: " TMR_FORMAT "tickss\n", elapsed); printf ("Elasped Time: " TMR_FORMAT "ticks\n", TMR_TO_NSECS (elapsed);
unsigned int TMR_frequency | ( | void | ) |
Get the frequency of the processor timer.
int TMR_initialize | ( | void | ) |
Initializes the TMR facility.
This is a one time only call to initialize internal data structures. This routine should be called as part of the library initialization sequence.
TMR_tick TMR_nsecs_to_ticks | ( | int | nanoseconds | ) |
Convert a number of nanoseconds to PTUs.
nanoseconds | The number of nanoseconds to convert to PTUs |
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 |
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, and _TMR_usecs_nsecs::usecs.