OSWtimeSpec Class Reference

Class for Python support since it doesn't have a struct timespec type. More...

#include <OSWtimeSpec.h>

List of all members.

Public Member Functions

 OSWtimeSpec ()
 Do nothing OSWtimeSpec constructor.
 OSWtimeSpec (struct timespec *ts)
 OSWtimeSpec constructor set up from a passed in timespec structure.
 OSWtimeSpec (time_t sec, long nSec)
 OSWtimeSpec constructor set up from passed in seconds and nanoseconds values.
timespec * timespec () const
 Return the timespec structure.
time_t sec () const
 Return the seconds portion of the timespec structure.
long nsec () const
 Return the nanoseconds portion of the timespec structure.


Detailed Description

Class for Python support since it doesn't have a struct timespec type.

Author:
R. Claus -- GLAST LAT I&T/Online - (claus@slac.stanford.edu)
Revision
1.1
Date:
March 12, 2004 -- Created
Id
OSWtimeSpec.h,v 1.1 2004/04/01 23:51:35 claus Exp

Copyright: Copyright 2004 by The Board of Trustees of the Leland Stanford Junior University. All rights reserved.


Constructor & Destructor Documentation

OSWtimeSpec::OSWtimeSpec ( time_t  sec,
long  nsec 
) [inline]

OSWtimeSpec constructor set up from passed in seconds and nanoseconds values.

Parameters:
sec Seconds value to initialize timespec value with
nsec Nanoseconds value to initialize timespec value with


Member Function Documentation

long OSWtimeSpec::nsec (  )  const [inline]

Return the nanoseconds portion of the timespec structure.

Returns:
The nanoseconds portion of the timespec structure

time_t OSWtimeSpec::sec (  )  const [inline]

Return the seconds portion of the timespec structure.

Returns:
The seconds portion of the timespec structure

struct timespec * OSWtimeSpec::timespec (  )  const [inline]

Return the timespec structure.

Returns:
A pointer to the timespec struct


The documentation for this class was generated from the following file:
Generated on Mon Jul 31 17:48:20 2006 for LDF v06-02-00 by doxygen 1.4.7