[prev in list] [next in list] [prev in thread] [next in thread]
List: orocos-dev
Subject: [Orocos-Dev] fosi timing functions
From: klaas.gadeyne () fmtc ! be (Klaas Gadeyne)
Date: 2006-02-28 11:52:50
Message-ID: Pine.LNX.4.63.0602281105400.2169 () nyquist ! labo01 ! fmtc ! be
[Download RAW message or body]
It is not totally clear what the meaning of the following functions in
fosi.h is? Can anyone confirm/deny my guesses below?
* inline NANO_TIME rtos_get_time_ns(void) { return rt_timer_read(); }
Get the "current time" of the underlying RTOS expressed in nanosecs
* inline TICK_TIME systemTimeGet(void) { return rt_timer_tsc(); }
Get the "current time" of the underlying RTOS expressed in ticks?
However, why is it called systemTimeGet() and not
rtos_get_time_ticks then?
* inline TICK_TIME systemNSecsTimeGet(void) { return rt_timer_read(); }
Apparently, there's a difference between system and rtos, otherwise
this would be the same call as the first one (implementation is the
same though, at least for xenomai).
The last 2 functions are used in the TimeService class, while the
former one is only used internally in the fosi stuff? Is that the
"clue"?
Klaas
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic