From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20428 invoked by alias); 20 Nov 2003 22:40:52 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 20421 invoked from network); 20 Nov 2003 22:40:52 -0000 Received: from unknown (HELO londo.lunn.ch) (80.238.139.98) by sources.redhat.com with SMTP; 20 Nov 2003 22:40:52 -0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1AMxTj-0006cX-00; Thu, 20 Nov 2003 23:40:47 +0100 Date: Thu, 20 Nov 2003 22:40:00 -0000 To: Yusuke Matsuoka Cc: 'Andrew Lunn' , 'Gary Thomas' , ecos-discuss@sources.redhat.com Message-ID: <20031120224047.GF2130@lunn.ch> Mail-Followup-To: Yusuke Matsuoka , 'Andrew Lunn' , 'Gary Thomas' , ecos-discuss@sources.redhat.com References: <20031120220619.GE2130@lunn.ch> <001101c3afb6$7eac0fe0$99596180@worldcup> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001101c3afb6$7eac0fe0$99596180@worldcup> User-Agent: Mutt/1.5.4i From: Andrew Lunn Subject: Re: [ECOS] how to link "gettimeofday" with arm-elf-gcc? X-SW-Source: 2003-11/txt/msg00287.txt.bz2 On Thu, Nov 20, 2003 at 02:34:43PM -0800, Yusuke Matsuoka wrote: > Hi Andrew and Gary, > > Thanks for the reply. > > I want to run the KVM(K virtual machine for Java) on eCos and > want to measure the exec time of my Java application on the board. > The original KVM implementation uses "gettimeofday", and I got > the linker error. > > Since I need a *millisecond* resolution, is there a better way > rather than including snmp? cyg_current_time() will return the number of 10ms ticks since the scheduler was started. Or you could run the test program 1,000,000 times and use a wallclock! Andrew -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss