Specialized context for a RTEvent coming from the TimingEventSource. More...
#include <TimingContext.h>
Public Member Functions | |
TimingContext (long long cycleStamp, const std::string &cycleName) | |
constructor | |
TimingContext (TimLibTime &interruptTimeStamp, unsigned long payload=0, bool forewarning=false) | |
Constructor. | |
int64_t | 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. | |
uint32_t | 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. | |
Protected Member Functions | |
void | init (unsigned long payload=0) |
Protected Attributes | |
TimLibTime | interruptTimeStamp_ |
TimLibTime | cycleTimeStamp_ |
Timestamp of the timing Event. |
Specialized context for a RTEvent coming from the TimingEventSource.
Definition at line 19 of file TimingContext.h.
fesaGSI::TimingContext::TimingContext | ( | long long | cycleStamp, | |
const std::string & | cycleName | |||
) |
constructor
cycleTimeStamp | ||
cycleName | ||
forewarning | Indicates if the context belongs to the next cycle |
Definition at line 13 of file TimingContext.cpp.
References cycleTimeStamp_, fesaGSI::GSICycleDescriptor::getCycleSelectorId(), fesaGSI::GSICycleDescriptor::getTgmMachineId(), and fesa::parseCycleSelector().
fesaGSI::TimingContext::TimingContext | ( | TimLibTime & | interruptTimeStamp, | |
unsigned long | payload = 0 , |
|||
bool | forewarning = false | |||
) |
Constructor.
cycleTimeStamp | ||
payload | ||
forewarning |
Definition at line 34 of file TimingContext.cpp.
References init().
uint32_t fesaGSI::TimingContext::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.
Definition at line 88 of file TimingContext.cpp.
References interruptTimeStamp_.
int64_t fesaGSI::TimingContext::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.
Definition at line 83 of file TimingContext.cpp.
References interruptTimeStamp_.
void fesaGSI::TimingContext::init | ( | unsigned long | payload = 0 |
) | [protected] |
Definition at line 42 of file TimingContext.cpp.
References cycleTimeStamp_, FesaGSIErrorAccessingTimLib, and interruptTimeStamp_.
Referenced by TimingContext().
TimLibTime fesaGSI::TimingContext::cycleTimeStamp_ [protected] |
Timestamp of the timing Event.
Definition at line 66 of file TimingContext.h.
Referenced by init(), and TimingContext().
TimLibTime fesaGSI::TimingContext::interruptTimeStamp_ [protected] |
Definition at line 61 of file TimingContext.h.
Referenced by getCycleTime(), getInterruptTimeStamp(), and init().