ait/poc/misc/benchmark.bash
author mb
Sat, 04 May 2013 12:03:46 -0400
changeset 0 70c307de9b84
permissions -rwxr-xr-x
initial commit. basic scripts
mb@0
     1
#!/bin/bash
mb@0
     2
START=$(date +%s)
mb@0
     3
$1
mb@0
     4
END=$(date +%s)
mb@0
     5
DIFF=$(( $END - $START))
mb@0
     6
echo  "it took $DIFF seconds"
mb@0
     7