From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <48722544.7090203@domain.hid> Date: Mon, 07 Jul 2008 16:16:36 +0200 From: Philippe Gerum MIME-Version: 1.0 References: <48722055.2090801@domain.hid> <5c3287e115e89c7cbb7c53402762cb2c@domain.hid> In-Reply-To: <5c3287e115e89c7cbb7c53402762cb2c@domain.hid> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: Re: [Xenomai-help] xenomai scheduler's ticks period Reply-To: rpm@xenomai.org List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: matthieu.connaulte_xenomai@domain.hid Cc: xenomai-help Matthieu wrote: > > On Mon, 07 Jul 2008 15:55:33 +0200, Philippe Gerum wrote: >> Matthieu wrote: >>>>> I need a clock to get the time with a 10 µs precision. I tought using >>>> this >>>>> master timebase, as it gives me a time in nanoseconds, irrespective of >>>>> vxworks timebase. >>>> That will work. The master timebase is always active and does return >>>> nanoseconds >>>> when inquired. >>> What instruction I use to get this time ? >>> I tried : >>> >>> #include >> #include , but that's not the point. >> >>> xntbase_get_time(&nktbase); >>> >>> But it doesn't work >> It ought to work, otherwise nothing would. What's the issue? Unpected >> result? > > I want to get the actual time at a 10µs precision. I will truncate the > result as the master timebase is a nanosecond precision time. > xntbase_get_time(&nktbase) will get you that value. Really. What does not work for you? >> -- >> Philippe. > > Matthieu > > > -- Philippe.