Carlos Parada wrote: > > Hi all, > > I'm stating to working with RTLinux with the objective of measure delays of > IP packets. > For this purpose, I need to get the actual time, for example, the > (nano/micro)seconds since 1 January of 1970. However, I've used almost all > the API referred to times on the man pages of the RTLinux site, and no one > does what I want. Most of them give me the time since the boot. > Can someone give a tip for this question that seems very easy.
You have to use clock_gethrtime(CLOCK_GPOS). That should give you what you need. I agree with you the provided documentation regarding clocks is pretty useless. To find what's right, you have to read the relevant man pages, the header files, the RELEASENOTE file and the UPGRADING file, and then ignore the contradictionary and/or false information. Good luck, Theo -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/