[Research] Question about timing a script

Purnamrita Sarkar psarkar at cs.cmu.edu
Mon Oct 27 22:25:46 EDT 2008


Hi everyone!

I am using a script which just calls an svm binary on a bunch of training
and test files. I want to also record how much time the svm-routine took
per training-test file. Is there a way to do that?

Any help would be really really appreciated! :)

Thanks,
Purna
------------------------------------------
Example Script:

for i in SetofNames
do
trainfile=x_i
trainlabel=y_i
testfile=z_i
testlabel=w_i
svmlin $trainfile $trainlabel > /dev/null
svmlin -f training_examples.weights $testfile $testlabel
done





More information about the Autonlab-research mailing list