View Single Post

  #2 (permalink)  
Old 05-15-2006, 02:50 PM
monk's Avatar
monk monk is offline
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Use -o option.

Write the resource use statistics to FILE instead of to the standard error stream. By default, this overwrites the file, destroying the file's previous contents. This option is useful for collecting information on interactive programs and programs that produce output on the standard error stream.

Code:
time -o output.txt myprog 
cat output.txt
To append output use -a option
Code:
time -a output.txt myprog 
cat output.txt
Reply With Quote