From nobody Tue Jul 12 19:44:32 2022 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8CA871D0F53C for ; Tue, 12 Jul 2022 19:44:35 +0000 (UTC) (envelope-from johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "gal.iecc.com", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LjB6B2lPZz3x27 for ; Tue, 12 Jul 2022 19:44:34 +0000 (UTC) (envelope-from johnl@iecc.com) Received: (qmail 3880 invoked from network); 12 Jul 2022 19:44:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:cleverness; s=f25.62cdcf21.k2207; bh=V4ApeKSziex4AnZK/1pud/nSHUL7cM8QxC4/5T5kxac=; b=pPawEioOxXQko0ks5ounzO8UjUBdW2fb3ljUb0VD9HQXlBZ1Ao9SHaYjNOb+wRPMdsNnWa7ou4ekr1GgvJftqf9tEGnEIlAMPCxwrva/lDPnYs5I3uOFCkujfGLY6jOoBn9UK8knuIEExPnoQsj18ahr2hcVXljN6U5QgcMN2XH9XKJjPfm4Psza+1LTZVyRYAoMw8P/hExDvg1cd3E59zzuFkj4sBY9fjv8RlNukoIM+h2eNcJLwTYuAO0zqfVDyDFuP9QHmwFFYEUFa2TBiSKtZHZ0hmp9ffoHdzR3Z23p5YGxC2ni8VGZi8akdZOHMn6yJnW0MgMQQLThtY8NPQ== Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPS (TLS1.3 ECDHE-RSA AES-256-GCM AEAD) via TCP6; 12 Jul 2022 19:44:33 -0000 Received: by ary.qy (Postfix, from userid 501) id AA49E458B955; Tue, 12 Jul 2022 15:44:32 -0400 (EDT) Date: 12 Jul 2022 15:44:32 -0400 Message-Id: <20220712194432.AA49E458B955@ary.qy> From: "John Levine" To: freebsd-questions@freebsd.org Cc: kh@panix.com Subject: Re: How do get elapsed time in milliseconds in a shell script? In-Reply-To: Organization: Taughannock Networks X-Headerized: yes Cleverness: minimal List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8bit X-Rspamd-Queue-Id: 4LjB6B2lPZz3x27 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=iecc.com header.s=f25.62cdcf21.k2207 header.b=pPawEioO; dmarc=pass (policy=none) header.from=iecc.com; spf=pass (mx1.freebsd.org: domain of johnl@iecc.com designates 2001:470:1f07:1126:0:43:6f73:7461 as permitted sender) smtp.mailfrom=johnl@iecc.com X-Spamd-Result: default: False [-5.40 / 15.00]; DWL_DNSWL_MED(-2.00)[iecc.com:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[iecc.com,none]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCVD_IN_DNSWL_MED(-0.40)[2001:470:1f07:1126:0:43:6f73:7461:from,2001:470:1f07:1126:0:78:696d:6170:received]; R_DKIM_ALLOW(-0.20)[iecc.com:s=f25.62cdcf21.k2207]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:1f07:1126::/64]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[iecc.com:+]; MLMMJ_DEST(0.00)[freebsd-questions]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_NONE(0.00)[]; ASN(0.00)[asn:147028, ipnet:2001:470::/32, country:HK]; HAS_ORG_HEADER(0.00)[]; RCVD_TLS_LAST(0.00)[] X-ThisMailContainsUnwantedMimeParts: N It appears that Kurt Hackenberg said: >On 2022/07/12 04:08, Frank Leonhardt wrote: > >With the "time" command? (Measures the time a command takes to execute, >in ms. "Time" is built in to some shells.) It's not built into /bin/sh, but if you run /usr/bin/time it prints the time to 1/100 sec which might be good enough. R's, John