From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: From: Greg Gallagher Date: Thu, 1 Mar 2018 12:02:15 -0500 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Xenomai] [NATIVE API] Xenomai native API equivalent for clock_gettime List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pintu Kumar Cc: Jan Kiszka , Jan Kiszka , "Xenomai@xenomai.org" Are you using Xenomai 2.6 or 3? If you are using 3 use this guide instead: https://xenomai.org/documentation/xenomai-3/html/xeno3prm/group__alchemy__timer.html Post back if nothing there can help, but you may want to loot at the source for some of the utilities that calculate latency as a example to work from -Greg On Thu, Mar 1, 2018 at 7:37 AM, Pintu Kumar wrote: > Hi, > > I have one question about Xenomai native API > > 1) What is the native API equivalent for clock_gettime() ? > > I have seen this Xenomai native API guide but I could not find it. > https://xenomai.org/documentation/xenomai-2.6/pdf/native-api.pdf > > I have a simple pthread based POSIX application which I converted to native API. > But for calculating the latency difference I using this in both case: > clock_gettime(CLOCK_MONOTONIC, &now); > > But I observed that if I use only NATIVE skin, I could not see any > latency difference. > However, if I use POSIX skin I see the latency difference. > > So, I want to replace clock_gettime() with native API to find the > exact difference with native skin. > > Or, if there is any other better way to measurement latency difference > between POSIX API and native API, please let me know. > > > > Thank You! > > Regards, > Pintu