feat: 添加了TranslateLast 查看上一次的查询记录, 还有一些bug

This commit is contained in:
JuanZoran
2023-01-14 17:16:49 +08:00
parent 273fb8d2c1
commit 8f0aae8b77
8 changed files with 98 additions and 107 deletions

View File

@ -1,24 +1,13 @@
-- 记录开始时间
local starttime = os.clock(); --> os.clock()用法
local function pw(str)
-- local res = vim.fn.strdisplaywidth(str)
local res = vim.fn.strwidth(str)
print(res)
local str = 'test'
local len = #str
for i = 1, 100000000 do
local size = len
end
pw('n. either extremity of something that has length')
pw('n.the point in time at which something ends')
pw('n.the concluding parts of an event or occurrence')
pw('n.a final part or section')
-- 48
-- 43
-- 48
-- 25
-- 记录结束时间
local endtime = os.clock(); --> os.clock()用法
print(string.format("end time : %.4f", endtime));