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