Module ctr
The ctr module.
Usage:
local ctr = require("ctr")
run () |
Return whether or not the program should continue. |
time () |
Return the number of milliseconds spent since some point in time. |
utime () |
Return a number of microseconds based on the system ticks. |
version |
Running version of ctrµLua. |
build |
Running build of ctrµLua. |
root |
Root directory of ctrµLua. |
hb |
Whether or not ctrµLua has been launched with ninjhax |
-
run ()
-
Return whether or not the program should continue.
Returns:
boolean
false
if the program should exist or true
if it can continue
-
time ()
-
Return the number of milliseconds spent since some point in time.
This can be used to measure a duration with milliseconds precision; however this can't be used to get the current time or date.
See Lua's os.date() for this use.
For various reasons (see the C source), this will actually returns a negative value.
Returns:
number
milliseconds
Usage:
local startTime = ctr.time()
local duration = ctr.time() - startTime
-
utime ()
-
Return a number of microseconds based on the system ticks.
Returns:
number
microseconds
-
gfx
-
The ctr.gfx module.
See also:
-
news
-
The ctr.news module.
See also:
-
ptm
-
The ctr.ptm module.
See also:
-
hid
-
The ctr.hid module.
See also:
-
ir
-
The ctr.ir module.
See also:
-
fs
-
The ctr.fs module.
See also:
-
httpc
-
The ctr.httpc module.
See also:
-
qtm
-
The ctr.qtm module.
See also:
-
cfgu
-
The ctr.cfgu module.
See also:
-
socket
-
The ctr.socket module.
See also:
-
cam
-
The ctr.cam module.
See also:
-
audio
-
The ctr.audio module.
See also:
-
apt
-
The ctr.apt module.
See also:
-
mic
-
The ctr.mic module.
See also:
-
thread
-
The ctr.thread module.
See also:
-
uds
-
The ctr.uds module.
See also:
-
swkbd
-
The ctr.swkbd module.
See also:
-
version
-
Running version of ctrµLua. This string contains the exact name of the last (pre-)release tag.
-
build
-
Running build of ctrµLua. This string contains the last commit hash.
-
root
-
Root directory of ctrµLua. Contains the working directory where ctrµLua has been launched OR the romfs root if romfs has been enabled.
-
hb
-
Whether or not ctrµLua has been launched with ninjhax