projects
/
lttng-ust.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Move public tracepoint definition headers to 'lttng/tp'
[lttng-ust.git]
/
tests
/
benchmark
/
ptime
1
#!/usr/bin/env python
2
#
3
# SPDX-License-Identifier: LGPL-2.1-only
4
5
import
sys
6
import
time
7
import
os
8
9
def
main
():
10
args
=
sys
.
argv
[
1
:]
11
if
len
(
args
) <
1
:
12
print
(
"usage:
%s
COMMAND"
%
sys
.
argv
[
0
])
13
sys
.
exit
(
1
)
14
15
cmd
=
' '
.
join
(
args
)
16
17
t1
=
time
.
time
()
18
os
.
system
(
cmd
)
19
t2
=
time
.
time
()
20
21
print
(
t2
-
t1
)
22
23
if
__name__
==
"__main__"
:
24
main
()
This page took
0.029955 seconds
and
4
git commands to generate.