"Time" command and save result in a file.txt

Hi,
I'am using "time" to check execution time of some script. Is there any possibility to save time command result into a file ?

% { time sleep 1;} 2>time.out
% cat time.out 
sleep 1  0.05s user 0.03s system 7% cpu 1.039 total

On solaris

time -p  some_command 2> somefile

-p forces time to write a one-liner to stderr, fd # 2