Skip site navigation (1)Skip section navigation (2)
Date:      12 Jul 2022 15:44:32 -0400
From:      "John Levine" <johnl@iecc.com>
To:        freebsd-questions@freebsd.org
Cc:        kh@panix.com
Subject:   Re: How do get elapsed time in milliseconds in a shell script?
Message-ID:  <20220712194432.AA49E458B955@ary.qy>
In-Reply-To: <b2107a6a-7b58-9e26-63f4-6a4c71393e2c@panix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
It appears that Kurt Hackenberg <kh@panix.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220712194432.AA49E458B955>