Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[bash] time -f "%U+%S"

Name: Anonymous 2011-01-25 8:02

Hi,

I want to evaluate the total CPU time of a process (user + system). So basically, time.txt -f "%U+%S"
But -f doesn't evaluate the sum.

I had to do :
/usr/bin/time -o time.txt -f "%U+%S" ./a.out ; cat time.txt | bc ; rm time.txt

Any idea to perform that, without a temporary file?

Name: Anonymous 2011-01-26 12:12

>>11
Nokoing is considered polite in /prog/.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List