39 #include "../os/TimeService.hpp" 40 #include "../internal/DataSource.hpp" 44 {
namespace scripting {
58 : stamp( 0 ), last(0), ts( os::
TimeService::Instance() )
82 DataSourceTime*
copy( std::map<const base::DataSourceBase*, base::DataSourceBase*>& alreadyCloned )
const {
DataSource is a base class representing a generic way to read data of type T.
os::TimeService::Seconds value() const
Return the result of the last evaluate() function.
The TimeService is used for system-wide time keeping and conversions.
long long ticks
The type for the systems clock tick.
A internal::DataSource which returns the time elapsed since the last reset in Seconds.
Seconds secondsSince(ticks relativeTime) const
Get Seconds passed since a certain moment.
#define RTT_SCRIPTING_API
DataSourceTime * clone() const
Return a shallow clone of this DataSource.
DataSourceTime * copy(std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const
Create a deep copy of this internal::DataSource, unless it is already cloned.
double Seconds
The type used to store SI unit time keeping.
void reset()
Reset the data to initial values.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
os::TimeService::Seconds const & rvalue() const
Get a const reference to the value of this DataSource.
ticks getTicks() const
Get current tick of the System clock.