diff --git a/test/full/projects.lua b/test/full/projects.lua index 22b27443e..d10158bc7 100644 --- a/test/full/projects.lua +++ b/test/full/projects.lua @@ -49,7 +49,7 @@ local function doProjects(pathname) for uri in files.eachFile() do local fileClock = os.clock() diag.doDiagnostic(uri, true) - print('诊断文件耗时:', os.clock() - fileClock, uri) + print('诊断文件耗时:', string.format("%.6f", os.clock() - fileClock), uri) end local passed = os.clock() - clock diff --git a/test/full/self.lua b/test/full/self.lua index 69da54a05..e5099dd2c 100644 --- a/test/full/self.lua +++ b/test/full/self.lua @@ -48,7 +48,7 @@ for uri in files.eachFile() do end) local fileClock = os.clock() diag.doDiagnostic(uri, true) - print('诊断文件耗时:', os.clock() - fileClock, uri) + print('诊断文件耗时:', string.format("%.6f", os.clock() - fileClock), uri) ::CONTINUE:: end