GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBS / V2-10-14

Constituent: pbs     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

TSS.h File Reference

Time Specification Services, functions to manipulat a timespec structure. More...

#include <time.h>
#include "PBS/WCT.h"

Include dependency graph for TSS.h:

This graph shows which files directly or indirectly include this file:


Functions

timespec TSS_nsecxTOtodAdd (long long int delta)
 Computes the time specification by adding a number of nanoseconds to the current time.
timespec TSS_nsecsTOtodAdd (unsigned int delta)
 Computes the time specification by adding a number of nanoseconds to the current time.
timespec TSS_usecsTOtodAdd (unsigned int delta)
 Computes the time specification by adding a number of microseconds to the current time.
timespec TSS_secsTOtodAdd (unsigned int delta)
 Computes the time specification by adding a number of seconds to the current time.
timespec TSS_from_wct (WCT_time wct)
 Converts a Wall Clock Time to a struct timespec.

Detailed Description

Time Specification Services, functions to manipulat a timespec structure.

Author:
JJRussell - russell@slac.stanford.edu
    CVS $Id: TSS.h,v 1.2 2004/12/07 16:13:06 russell Exp $

Provides a set of utility functions to manipulate a timespec structure. This structure stores the time as two integers, one representing the number of seconds and the other the number of nanoseconds.


Function Documentation

struct timespec TSS_from_wct WCT_time  wct  ) 
 

Converts a Wall Clock Time to a struct timespec.

Parameters:
wct The Wall Clock Time to convert
Returns:
The TimeOut Value

struct timespec TSS_nsecsTOtodAdd unsigned int  delta  ) 
 

Computes the time specification by adding a number of nanoseconds to the current time.

Parameters:
delta The number of microeconds to add to the current time.
Return values:
The new time returned as a timespec structure.

struct timespec TSS_nsecxTOtodAdd long long int  delta  ) 
 

Computes the time specification by adding a number of nanoseconds to the current time.

Parameters:
delta The number of microeconds to add to the current time.
Return values:
The new time returned as a timespec structure.

struct timespec TSS_secsTOtodAdd unsigned int  delta  ) 
 

Computes the time specification by adding a number of seconds to the current time.

Parameters:
delta The number of seconds to add to the current time.
Return values:
The new time returned as a timespec structure.

struct timespec TSS_usecsTOtodAdd unsigned int  delta  ) 
 

Computes the time specification by adding a number of microseconds to the current time.

Parameters:
delta The number of microeconds to add to the current time.
Return values:
The new time returned as a timespec structure.


Generated on Wed Feb 14 17:59:08 2007 by  doxygen 1.4.4