From nobody Tue Jul 12 22:58:41 2022 X-Original-To: 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 5F9E71D0FD53 for ; Tue, 12 Jul 2022 22:58:45 +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 4LjGQD1ckNz3S0D for ; Tue, 12 Jul 2022 22:58:44 +0000 (UTC) (envelope-from johnl@iecc.com) Received: (qmail 36914 invoked from network); 12 Jul 2022 22:58:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:subject:in-reply-to:references:mime-version:content-type; s=9030.62cdfca3.k2207; bh=fPxACvq+dAdB0TE7n1l9voI6qi/MeVxX6CtT0H8xsnE=; b=EL5LatMHdi1d5G6bvlLR4z3XTCtpfg2ppNobLstf+8fkmZl7NKxRtgCj15tVSFbJdoq+ia+u9o6eoLp/OyFEpkawfH97/rZgbGT4GWuGxd+tAnz1wSdvzaVAN2QUW55wu5R/gXaKOCzn81IuFmDQAc2my7zEonzIAMaN1dcnFiATHqJdsjkOKpXFflXExdbBZ8vwWGASEOKyey8BaEy4IJzF+4QtrERuvg43P+9H6XaMwcIRHOErfKSFrRm5DZsBczZBWD7PaLiUkcwLfpINP8mGftk4qPqFaAzyxNU8RGPqkKAnzCX3QnN0+LUZ5jeq7JtR0thnZDWL19QtKjc7cQ== 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 22:58:43 -0000 Received: by ary.qy (Postfix, from userid 501) id 9D31D4591F25; Tue, 12 Jul 2022 18:58:41 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by ary.qy (Postfix) with ESMTP id E9F964591F07; Tue, 12 Jul 2022 18:58:41 -0400 (EDT) Date: 12 Jul 2022 18:58:41 -0400 Message-ID: <77a16f8f-a70a-3abf-02be-70b1d252bd36@iecc.com> From: "John R. Levine" To: "Steve O'Hara-Smith" , questions@freebsd.org X-X-Sender: johnl@ary.qy Subject: Re: How do get elapsed time in milliseconds in a shell script? In-Reply-To: <20220712205754.928c3f921f42f66fb977f891@sohara.org> References: <20220712194432.AA49E458B955@ary.qy> <20220712205754.928c3f921f42f66fb977f891@sohara.org> 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=US-ASCII; format=flowed X-Rspamd-Queue-Id: 4LjGQD1ckNz3S0D X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=iecc.com header.s=9030.62cdfca3.k2207 header.b=EL5LatMH; 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.89 / 15.00]; DWL_DNSWL_MED(-2.00)[iecc.com:dkim]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.991]; 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=9030.62cdfca3.k2207]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:1f07:1126::/64]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:147028, ipnet:2001:470::/32, country:HK]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[questions]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[iecc.com:+]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N > How do you get it to do that, all it does AFAICT is time the > execution of some command in real, system and user time. It does nothing > with the time of day. It doesn't give the time of day. I figured if someone's wondering about milliseconds, it's because he's measuring elapsed time. Regards, John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. https://jl.ly