Files
Terrarum/work_files/usermanuals/romapidoc/api_machine.tex

14 lines
545 B
TeX

The Machine API provides means to control the host machine.
\section{Functions}
\begin{tabularx}{\textwidth}{l l X}
\textbf{\large Function} & \textbf{\large Return} & \textbf{\large Description}
\\ \\
\endhead
machine.milliTime() & int & Returns how many time the machine is up, in milliseconds (one thousandth of seconds).
\\ \\
machine.totalMemory() & int & Returns the total size of the memory installed in the computer, in bytes.
\\ \\
machine.freeMemory() & int & Returns the amount of free memory on the computer.
\end{tabularx}