Commit | Line | Data |
---|---|---|
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 | |
7 | import sys | |
8 | import time | |
9 | import os | |
10 | ||
11 | def 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 |
25 | if __name__ == "__main__": |
26 | main() |