Move to kernel style SPDX license identifiers
[lttng-ust.git] / tests / benchmark / ptime
... / ...
CommitLineData
1#!/usr/bin/env python
2#
3# SPDX-License-Identifier: LGPL-2.1-only
4
5import sys
6import time
7import os
8
9def 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
23if __name__ == "__main__":
24 main()
This page took 0.024019 seconds and 4 git commands to generate.