fesa-core-gsi  4.3.1
fesaGSI::TimingContext Class Reference

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

#include <TimingContext.h>

Inherits TimingContext.

Public Member Functions

 TimingContext (long long cycleStamp, const std::string &cycleName, int64_t interruptStamp=MultiplexingContext::UNKNOWN_TIMESTAMP)
 constructor More...
 
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. More...
 
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. More...
 

Protected Attributes

int cycleId_
 Moved cycleID to lab-part ... not available at fesa-core any more.
 

Detailed Description

Specialized context for a RTEvent coming from the TimingEventSource.

Constructor & Destructor Documentation

fesaGSI::TimingContext::TimingContext ( long long  cycleStamp,
const std::string &  cycleName,
int64_t  interruptStamp = MultiplexingContext::UNKNOWN_TIMESTAMP 
)

constructor

Parameters
cycleTimeStamp
cycleName
forewarningIndicates if the context belongs to the next cycle

Member Function Documentation

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.

Returns
the event-time in the cycle.
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.

Returns
the current TimeStamp

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