gsick / lit-clocktime

C clocktime wrapped in lua ffi and packaged for lit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lit-clocktime

Easily get milliseconds or nanoseconds of time.
C clocktime wrapped in lua ffi and packaged for lit.

Examples

time and nanoseconds part

local Clock = require("clocktime")

local s, ns = Clock.time()

time, milliseconds and nanoseconds part

local Clock = require("clocktime")

local s, ms, ns = Clock.time({ msec = true })

About

C clocktime wrapped in lua ffi and packaged for lit.

License:MIT License


Languages

Language:Lua 86.5%Language:Makefile 13.5%