platform.hw

From Inspired-Lua Wiki
Revision as of 13:17, 2 June 2013 by Adriweb (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

platform.hw is a function that is part of the platform library.


platform.hw() returns a numeric value that indicates the CPU speed of the host hardware. The higher the number, the faster the hardware.


Examples :

Return value Host platform
3 TI-Nspire ClickPad (B&W) and CX handheld devices
7 Computer software or Web Player


This is useful to determine how short the period of a timer can be set. You can precisely know what device is in use by combining that with the platform.isColorDisplay() function, for example.


This has been introduced in TI-Nspire OS 3.2 (Changes).

Syntax

platform.hw() with no arguments.