Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 29 Oct 2003 10:01:14 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Shell keyword 'time' and gcc -mno-cygwin Message-ID: <20031029150114.GE6702@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i On Wed, Oct 29, 2003 at 02:02:59PM +0200, Alex Vinokur wrote: >=================================== >Windows 2000 Professional >CYGWIN_NT-5.0 1.5.4(0.94/3/2) >gcc version 3.3.1 (cygming special) >=================================== > >I compiled some program with Cygwin and Mingw32 interfaces. > >$ g++ fib.cpp -o fib_cyg > >$ g++ fib.cpp -mno-cygwin -o fib_nmg > >$ time -p fib_cyg th 10000 > zzz >real 0.48 >user 0.44 >sys 0.03 > >$ time -p fib_nmg th 10000 > zzz >real 0.39 >user 0.02 >sys 0.04 > > >We can see that user-time-used for executable file with Mingw32 interface is nearly equal 0. >It seems that that is not in line with the reality. > >Any explanation? Beyond the obvious? Cygwin programs fill out the structures needed to calculate run time. Native windows programs don't. PTC. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/