Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v8plus / bin / timed-run
CommitLineData
920dae64
AT
1#!/bin/sh
2# \
3exec expect -f "$0" ${1+"$@"}
4# run a program for a given amount of time
5# i.e. time 20 long_running_program
6
7set timeout [lindex $argv 0]
8eval spawn [lrange $argv 1 end]
9expect