Time a function: Difference between revisions
Content added Content deleted
m (→{{header|RPL}}: TICKS instruction) |
|||
Line 2,483: | Line 2,483: | ||
=={{header|RPL}}== |
=={{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. |
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" |
{| class="wikitable" |
||
! RPL code |
! RPL code |