GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBS / V2-10-13
Constituent: pbs     Tag: linux-gcc
#include <stdlib.h>
#include <time.h>
#include "PBS/impl/SPIN_time.h.lx-xxx-xxx"
Include dependency graph for SPIN.ih.lx-xxx-xxx:
Defines | |
#define | SPIN_PTUS_TO_NSECS(_ptus) _ptus * SPIN_K_NSECS_PER_PTU; |
Converts a short range processor spin time to nanoseconds. | |
#define | SPIN_NSECS_TO_PTUS(_nsecs) (_nsecs + SPIN_K_NSECS_PER_PTU - 1)/SPIN_K_NSECS_PER_PTU; |
Converts a short range nanoseconds to a processor spin time. | |
Functions | |
SPIN__EXP_FNC unsigned int | SPIN__nsecs_to_ptus (unsigned int nsecs) |
Converts a number of nanoseconds to PTUs. | |
SPIN__EXP_FNC unsigned int | SPIN__ptus_to_nsecs (unsigned int ptus) |
SPIN__EXP_FNC SPIN_time | SPIN__curtime (void) |
Returns the current time in units of PTUs. | |
SPIN__EXP_FNC int | SPIN__wait (SPIN_time begin_ptu, unsigned int ptus) |
Allows one to wait a specified time period after a start time. |
CVS $Id: SPIN.ih.lx-xxx-xxx,v 1.5 2004/12/07 16:13:08 russell Exp $
|
Converts a short range nanoseconds to a processor spin time.
|
|
Converts a short range processor spin time to nanoseconds.
|
|
Returns the current time in units of PTUs.
The customary use of this routine is to strobe the starting time, then use the return value along with SPIN__check() or SPIN__wait() to allow a specified amount of time to elapsed from the starting time. |
|
Converts a number of nanoseconds to PTUs.
|
|
|
|
Allows one to wait a specified time period after a start time.
|