Thomas Necker wrote: > A few weeks ago I was asking about a global variable available that just > counts the system ticks (for pSOS skin) and that could be read by the > application. Philippe suggested xntbase_get_jiffies for that purpose. > Now it seems to me that this function can only be called in kernel > space. Is that correct? And if so, is there a way to get this > information in user space? Basically I want to get rid of kernel code in > this context completely if possible. >
The pSOS skin supports tm_get() which converts the current count of jiffies to calendar date and time, but this may not be handy for your calculations. The other option would be to extend this skin with a Xenomai-specific syscall returning this value, in a similar way than tm_getm(), which returns the TSC converted to nanoseconds. > Thomas > > > _______________________________________________ > Xenomai-help mailing list > [email protected] > https://mail.gna.org/listinfo/xenomai-help > -- Philippe. _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
