Commit | Line | Data |
---|---|---|
1 | #!/usr/bin/python | |
2 | ||
3 | import sys | |
4 | import time | |
5 | import os | |
6 | ||
7 | def main(): | |
8 | args = sys.argv[1:] | |
9 | if len(args) < 1: | |
10 | print "usage: %s COMMAND" % sys.argv[0] | |
11 | sys.exit(1) | |
12 | ||
13 | cmd = args[0] | |
14 | ||
15 | t1 = time.time() | |
16 | os.system(cmd) | |
17 | 1 | |
18 | t2 = time.time() | |
19 | ||
20 | print (t2-t1) | |
21 | ||
22 | main() |