-- 設置動態庫路徑 package.cpath = './luaclib/?.so;' -- 加載socket local socket = require('socket.core') -- 獲取當前毫秒時間 local current = socket.gettime() * 1000 print(string.format('current time is %d ',current))
socket.tgz 可以自己安裝
-- 設置動態庫路徑 package.cpath = './luaclib/?.so;' -- 加載socket local socket = require('socket.core') -- 獲取當前毫秒時間 local current = socket.gettime() * 1000 print(string.format('current time is %d ',current))
socket.tgz 可以自己安裝
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。