nanog mailing list archives
Re: Unix Timestamp
From: Chrisy Luke <chrisy () flix net>
Date: Mon, 22 Oct 2001 23:50:16 +0100
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
Current thread:
- Re: Unix Timestamp Steven M. Bellovin (Oct 22)
- <Possible follow-ups>
- Unix Timestamp Brandon Handeland (Oct 22)
- Re: Unix Timestamp Pat Myrto (Oct 22)
- Re: Unix Timestamp Barry Shein (Oct 22)
- Re: Unix Timestamp Greg A. Woods (Oct 22)
- Re: Unix Timestamp Chrisy Luke (Oct 22)
- Re: Unix Timestamp Chris Adams (Oct 22)
- Re: Unix Timestamp Greg A. Woods (Oct 22)
- Re: Unix Timestamp Michael L. Barrow (Oct 22)
- Re: Unix Timestamp Henry Yen (Oct 22)
- Re: Unix Timestamp Owen DeLong (Oct 23)
- Re: Unix Timestamp Pat Myrto (Oct 22)
- Re: Unix Timestamp Nathan Stratton (Oct 22)
- Re: Unix Timestamp Michael L. Barrow (Oct 22)