Content deleted Content added
done, remove |
give a time taken on top of what profiler would say |
||
Line 137:
local text = mw.text.unstripNoWiki(frame.args[1])
local out = ""
local start = os.clock()
for i = 1, tonumber(frame.args[2]) or 10 do
local r = tostring(math.random())
out = out .. string.sub(frame:preprocess(text..r),1,-(1+#r)) .. (frame.args[3] or "\n")
end
local duration = os.clock() - start
return "Time taken: " .. duration .. "\n\n" .. out
end
Line 147 ⟶ 149:
local text = mw.text.unstripNoWiki(frame.args[1])
local out = ""
local start = os.clock()
for i = 1, tonumber(frame.args[2]) or 10 do
out = out .. frame:preprocess(text) .. (frame.args[3] or "\n")
end
local duration = os.clock() - start
return "Time taken: " .. duration .. "\n\n" .. out
end
|