From owner-freebsd-questions@freebsd.org Thu Apr 20 12:59:07 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9EB92D487FB for ; Thu, 20 Apr 2017 12:59:07 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay14.qsc.de (mailrelay14.qsc.de [212.99.163.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0AEF5157D for ; Thu, 20 Apr 2017 12:59:06 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay14.qsc.de; Thu, 20 Apr 2017 14:58:57 +0200 Received: from r56.edvax.de (port-92-195-67-137.dynamic.qsc.de [92.195.67.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 2042D3CC56 for ; Thu, 20 Apr 2017 14:58:56 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v3KCwuoU002662 for ; Thu, 20 Apr 2017 14:58:56 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 20 Apr 2017 14:58:56 +0200 From: Polytropon To: freebsd-questions@freebsd.org Subject: Re: awk help Message-Id: <20170420145856.9e852d30.freebsd@edvax.de> In-Reply-To: References: <58F25A01.1060208@gmail.com> <7951DF71-5CD3-4B53-9CB4-13CAA8945983@huiekin.org> <58F4CD14.7090008@gmail.com> <58F53EEA.2030206@gmail.com> <7b381f8f-e2a5-26ea-075e-96ae35efb25d@rogers.com> <58F61027.3090100@gmail.com> <58F77BFE.50108@gmail.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay14.qsc.de with 5B48C68342C X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1140 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Apr 2017 12:59:07 -0000 On Thu, 20 Apr 2017 14:54:33 +0200, Andreas Perstinger wrote: > On 2017-04-19 17:02, Ernie Luzar wrote: > > I used the date command to time the runs, problem is it only goes to a > > second. What is really needed here is a timer in hundredths of a second. > > Is there such a command that does that? > > There is the "time" command for timing the execution of a command/script. The C shell has a builtin time command (very convenient for interactive use), and there's also /usr/bin/time which can be used from within a sh script. Example: % which time time: shell built-in command. % time ls 0.012u 0.000s 0:00.03 33.3% 24+840k 0+0io 0pf+0w For comparison: % /usr/bin/time ls 0.03 real 0.00 user 0.00 sys -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...