Files
Terrarum/work_files/romapidoc/api_machine.tex
Song Minjae 81958709ee virtualcomputer: unix-like operation system [WIP]
Former-commit-id: 68bb33337b78c7357d16a5a3ca47ad5f834f3d08
Former-commit-id: 6c8931a114682d2b1414414484597f5e0d0ca095
2016-10-02 01:18:58 +09:00

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}