kl1 使用多线程编译

This commit is contained in:
2024-12-14 15:43:03 +08:00
parent 156c4ef8b2
commit 71cadfda29
4 changed files with 29 additions and 12 deletions

17
build/build_time_cost_test.py Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import os
import sys
import time
if __name__ == "__main__":
time_start=time.time()
cmd=f"{' '.join(sys.argv[1:])} > build_log.log"
print(cmd)
os.system("python3 ../clear_output.py")
os.system(cmd)
time_end=time.time()
print(f"build end, cost {time_end-time_start} s")
print(time.asctime())