delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/06/05:01:12

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <CCD084B0E779D411A70300508B662226018387A1@exchukahis02.experian.co.uk>
From: "Morrison, John" <John DOT Morrison AT uk DOT experian DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: RE: Timing problem
Date: Fri, 6 Jul 2001 09:58:22 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

Superb!

Thank you very much.

J.

> -----Original Message-----
> From: Robert Collins [mailto:robert DOT collins AT itdomain DOT com DOT au]
> Sent: Friday, 06 July 2001 09:45
> To: Morrison, John; cygwin AT cygwin DOT com
> Subject: RE: Timing problem
> 
> 
> 
> > -----Original Message-----
> > From: Morrison, John [mailto:John DOT Morrison AT uk DOT experian DOT com]
> > Sent: Friday, July 06, 2001 6:37 PM
> > To: 'cygwin AT cygwin DOT com'
> > Subject: RE: Timing problem
> > 
> > 
> > Nope:
> > 
> > w
> > 
> > real    0m0.422s
> > user    0m0.062s
> > sys     0m0.077s
> > 
> > What made you think of the brackets?  I think that the ls is 
> > being piped
> > into grep.
> > 
> 
> My previous test cases
> 
> $ time echo | less
> 
> 
> real    0m3.796s
> user    0m0.080s
> sys     0m0.080s
> 
> note the two lines under the prompt. You can't see it here, but less
> paused with (END) _before_ the real user and sys values came up.
> 
> $ (time echo) | less
> 
> real    0m0.000s
> user    0m0.000s
> sys     0m0.000s
> 
> Note the single line after the prompt, and the 0 time length :].  That
> gave me the conclusion that your first problem was that time 
> was timing
> the egrep as well as the command. Trying with ls as you 
> indicated gives
> me the time output to console still... but it times the ls as 
> opposed to
> the less.
> 
> Try three: with a little persistence:
> 
> $ (time ls > /dev/null) 2>&1 | egrep '^real'
> real    0m0.241s
> 
> Rob
> 


=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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