Skip to content

Native Functions

Frederik Tobner edited this page Aug 9, 2022 · 14 revisions

I/O

readLine

Reads the next line of characters from the standard input stream
var input = readLine();

Miscellaneous

random

Returns a random number
var number = random();

System Info

getUserName

Returns the userName of the user that is executing the cellox program
var input = getUserName();

Time

clock

Returns the amount of seconds that have passed since the program execution has started
var expiredTime = clock();

Threads

wait

Suspends the current thread for the specified number of seconds
wait(5);

Clone this wiki locally