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