QTime Class Reference

Inheritance diagram for QTime:

QObject

List of all members.


Detailed Description

Diana time.

Public Member Functions

 QTime ()
 default constructor
 QTime (time_t time)
 constructor from a time_t => only unixtime is set
virtual ~QTime ()
 default destructor
void SetFromStartRunNs (unsigned long long time)
 set time from start of run in ns
void SetStartRunUnix (unsigned int time)
 set time of start of run in seconds from 1/1/1970
void SetStartRunUnix (int year, int month, int day, int hour, int min, int sec)
unsigned long long GetFromStartRunNs () const
 retrieve time from start of run in ns
time_t GetStartRunUnix () const
 retrieve time of start of run in seconds from 1/1/1970
time_t GetTimeSec () const
 retrieve time of event in seconds from 1/1/1970
unsigned int GetTimeNSec () const
 retrieve time of event in nanoseconds from the last second
std::string GetTimeAsString () const
 retrieve time of event in string format
bool operator== (const QTime &other) const
 operator==
bool operator< (const QTime &other) const
 operator<
void Clear ()
 clear values

Private Attributes

unsigned long long fFromStartRunNs
unsigned int fStartRunUnix

Member Function Documentation

void QTime::SetStartRunUnix ( int  year,
int  month,
int  day,
int  hour,
int  min,
int  sec 
)

this method accepts year, day, month,hour min,sec format


The documentation for this class was generated from the following files:

Generated on Tue Nov 16 10:50:08 2010 for CUORE Software by  doxygen 1.5.6