fesa-core-gsi  4.2.0
fesaGSI::TimingSimulationContext Class Reference

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

#include <TimingSimulationContext.h>

Inherits TimingContext.

Public Member Functions

 TimingSimulationContext (std::string &domainName, long cycleId, std::string &cycleName, long relativEventTimeInCycle)
 Constructor. More...
 
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. More...
 
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. More...
 
void setCycleTimeStamp ()
 set startCycle time: internally relies on gettimeofday() call
 

Detailed Description

Specialized context for a RTEvent coming from the TimingSimulationEventSource.

Constructor & Destructor Documentation

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

Constructor.

Parameters
cycleNameName of the cycle the context is used for
relativEventTimeInCycletime from the start of the cycle to the event

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.
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

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