From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4BDAECA0.8030006@domain.hid> Date: Fri, 30 Apr 2010 16:43:44 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] help with porting simple posix application List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Leyrit Vincent Cc: xenomai@xenomai.org Leyrit Vincent wrote: > Hello, > > i would like to port a POSIX application on XENOMAI .. See: http://www.xenomai.org/index.php/Porting_POSIX_applications_to_Xenomai > CODE ----------------------------------------------------------------------- > > int recursive_method(int cp) > { > struct timeval ta; > struct timespec ts_start, ts_end; > > if(cp < n_recurs) > { > for(int i=0; i < 10;i++) > { > clock_gettime(CLOCK_REALTIME,&ts_start); > xnprintf("%d\n", ts_start.tv_nsec); printf here causes a switch to secondary mode. -- Gilles.