Time a function: Difference between revisions

m
→‎{{header|RPL}}: TICKS instruction
m (→‎{{header|RPL}}: TICKS instruction)
Line 2,483:
 
=={{header|RPL}}==
In its first versions, RPL did not provide user access to system clock - but advanced users knew which system call can be made on their machine to get it. The following code works on a 1987-manufactured HP-28S, but can crash on older ones and will surely do on other machines. If using a newer model, replace <code>#11CAh SYSEVAL</code> by <code>TICKS</code>, which is a (safe) built-in instruction.
{| class="wikitable"
! RPL code
1,150

edits