delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/29/10:01:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <cgf-rcm AT cygwin DOT com>
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: <bnoaa3$k65$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <bnoaa3$k65$1@sea.gmane.org>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019