Re: [FEATURE REQUEST] Filter-branch extend progress with a simple estimated time remaning
- From
Jeff King <peff@peff.net>
- Date
- Aug 26, 2015, 02:15 UTC
- Message-ID
- <20150826021517.GA20292@sigill.intra.peff.net>
- In-Reply-To
- <CAPig+cQ1COjZuBq2YWKNdQ7zrzfvrppX-84vc9i1mJ6-yp_ZiQ@mail.gmail.com>
On Tue, Aug 25, 2015 at 04:12:54PM -0400, Eric Sunshine wrote:
Show 12 quoted lines
> > A little googling came up with:
> >
> > awk 'END { print systime() }' </dev/null
> >
> > which probably (?) works everywhere.
>
> On Mac OS X and FreeBSD:
>
> $ awk 'END { print systime() }' </dev/null
> awk: calling undefined function systime
> source line number 1
> $Oh, well. The reference I saw was that the old Kernighan nawk had it, but that seems not to be the case:
http://www.cs.princeton.edu/~bwk/btl.mirror/
"date +%s" seems to work on OS X, and so presumably on other BSDs. No clue what would work on stuff like SunOS, AIX, etc.
-Peff