Date: Thu, 14 Aug 2003 11:45:56 -0500 From: "Charles Howse" <chowse@charter.net> To: <freebsd-questions@freebsd.org> Subject: RE: Using bc in bash script Message-ID: <002301c36283$8a8a40a0$04fea8c0@moe> In-Reply-To: <87d6f89oya.fsf@pooh.honeypot.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Can I refine it to give me something like: .784 seconds? > > Use "bc -l" instead of bc. That should do it. No, that still gives 0 seconds. I think this whole thing is dependent on the fact that `date +%s` reports integers. I'm still interested in something like .874 seconds, but for the time being, I'll just use an if..then..else to say "less than 1 second" or the actual number of seconds. I've looked at the time command suggested by Jez, haven't tried it yet. Geeeezz, why don't they include some *SIMPLE* examples in the man pages? Not everybody has a degree in Advanced Calculus and works as a C++ programmer. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002301c36283$8a8a40a0$04fea8c0>