ltjdbg.pformat = pformat
-------------------- 所要時間合計
-require("socket")
do
local max = math.max
- local gettime = socket.gettime
+ local gettime = os.socketgettime or (socket and socket.gettime)
local time_stat = {}
local function start_time_measure(n)
if not time_stat[n] then
end
--- the following function is modified from jafontspec.lua (by K. Maeda).
--- Instead of "%", we use U+FFFFF for suppressing spaces.
---DEBUG require"socket"
local time_line = 0
local start_time_measure, stop_time_measure
= ltjb.start_time_measure, ltjb.stop_time_measure
%%% \expandafter...\relax
\directlua{
- socket=require'socket'
+ if not socket then
+ socket = socket or {}; socket.gettime = os.socketgettime
+ end
my_a=socket.gettime()
}