fesaGSI::TimingSimulationContext Class Reference

Specialized context for a RTEvent coming from the TimingSimulationEventSource. More...

#include <TimingSimulationContext.h>

List of all members.

Public Member Functions

 TimingSimulationContext (std::string &domainName, long cycleId, std::string &cycleName, long relativEventTimeInCycle)
 Constructor.
long long getInterruptTimeStamp ()
 Returns the time of occurrence of the event expressed as a 64-bit integer counting the number of nanoseconds elapsed since the UNIX epoch i.e. since January 1st 1970 at 00.00 A.M.
unsigned long getCycleTime ()
 Returns the time of occurrence of the event in the cycle in ms. The time is returned in a 32 bit integer with the number of miliseconds ticks since the start of the **currently** executing cycle.
void setCycleTimeStamp ()
 set startCycle time: internally relies on gettimeofday() call

Private Attributes

long cycleTime_
 time since the start of the current cycle in ms.

Detailed Description

Specialized context for a RTEvent coming from the TimingSimulationEventSource.

Definition at line 14 of file TimingSimulationContext.h.


Constructor & Destructor Documentation

fesaGSI::TimingSimulationContext::TimingSimulationContext ( std::string &  domainName,
long  cycleId,
std::string &  cycleName,
long  relativEventTimeInCycle 
)

Constructor.

Parameters:
cycleName Name of the cycle the context is used for
relativEventTimeInCycle time from the start of the cycle to the event

Definition at line 7 of file TimingSimulationContext.cpp.

References cycleTime_.


Member Function Documentation

unsigned long fesaGSI::TimingSimulationContext::getCycleTime (  ) 

Returns the time of occurrence of the event in the cycle in ms. The time is returned in a 32 bit integer with the number of miliseconds ticks since the start of the **currently** executing cycle.

Returns:
the event time in the cycle.

Definition at line 23 of file TimingSimulationContext.cpp.

References cycleTime_.

long long fesaGSI::TimingSimulationContext::getInterruptTimeStamp (  ) 

Returns the time of occurrence of the event expressed as a 64-bit integer counting the number of nanoseconds elapsed since the UNIX epoch i.e. since January 1st 1970 at 00.00 A.M.

Returns:
time in nanoseconds

Definition at line 18 of file TimingSimulationContext.cpp.

void fesaGSI::TimingSimulationContext::setCycleTimeStamp (  ) 

set startCycle time: internally relies on gettimeofday() call

Definition at line 28 of file TimingSimulationContext.cpp.

Referenced by fesaGSI::TimingSimulationEventSource::wait().


Member Data Documentation

time since the start of the current cycle in ms.

Definition at line 51 of file TimingSimulationContext.h.

Referenced by getCycleTime(), and TimingSimulationContext().


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

Generated on 25 Jan 2013 for fesa-core-gsi by  doxygen 1.6.1