import time
tic = time.time()
import exec
exec.run()
tac = time.time()
delay = tac - tic
print(f'Recognised in {delay} seconds')
示例#2
0
 def test_exec_7(self):
     exec.configure(
         arg_reporting_option=exec.REPORTING_OPT_STDERR_STDOUT_PROGRESS)
     exec.run(["tree", "/home/robert"])
示例#3
0
 def test_exec_2(self):
     exec.configure(arg_dry_run=True)
     exec.run(["ls"])
示例#4
0
 def test_exec_6(self):
     exec.configure(arg_reporting_option=exec.REPORTING_OPT_STDERR_ONLY)
     exec.run(["ls"])
示例#5
0
 def test_exec_1(self):
     exec.configure()
     exec.run(["ls"])