projects
/
ust.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
ustctl: Fix memory allocation problem with compatibility args
[ust.git]
/
tests
/
benchmark
/
ptime
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
()
This page took
0.029926 seconds
and
4
git commands to generate.