Tests: implement REUSE with SPDX identifiers
[lttng-ust.git] / tests / benchmark / ptime
1 #!/usr/bin/env python
2
3 # SPDX-FileCopyrightText: 2023 EfficiOS, Inc
4 #
5 # SPDX-License-Identifier: LGPL-2.1-only
6
7 import sys
8 import time
9 import os
10
11 def main():
12 args = sys.argv[1:]
13 if len(args) < 1:
14 print("usage: %s COMMAND" % sys.argv[0])
15 sys.exit(1)
16
17 cmd = ' '.join(args)
18
19 t1 = time.time()
20 os.system(cmd)
21 t2 = time.time()
22
23 print("Wall time: " + str(t2-t1))
24
25 if __name__ == "__main__":
26 main()
This page took 0.02971 seconds and 4 git commands to generate.