[43680] in North American Network Operators' Group
Re: Unix Timestamp
daemon@ATHENA.MIT.EDU (Chrisy Luke)
Mon Oct 22 18:50:53 2001
Date: Mon, 22 Oct 2001 23:50:16 +0100
From: Chrisy Luke <chrisy@flix.net>
To: "Greg A. Woods" <woods@weird.com>
Cc: nanog@merit.edu
Message-ID: <20011022235016.B14022@flix.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20011022210811.6E88FE8@proven.weird.com>; from woods@weird.com on Mon, Oct 22, 2001 at 05:08:11PM -0400
Errors-To: owner-nanog-outgoing@merit.edu
Greg A. Woods wrote (on Oct 22):
> $ time ksh -c 'i=0; while [ $i -lt 100 ] ; do date -r 1003723200 ; : $((i++)) ; done > /dev/null'
> 5.24s real 0.65s user 4.43s system
[...]
> $ time ksh -c 'i=0; while [ $i -lt 10 ] ; do gawk '\''END{print strftime("%c",1003723200)}'\'' < /dev/null ; : $((i++)) ; done > /dev/null'
> 1.91s real 0.62s user 1.15s system
You only run awk 10 times according to that, not 100 like in the previous
two examples (only one quoted).
But this is getting OT.
Chris.
--
== chris@easynet.net T: +44 845 333 0122
== Global IP Network Engineering, Easynet Group PLC F: +44 845 333 0122