Difference between revisions of "platform.hw"
Jump to navigation
Jump to search
(Created page with "platform.'''hw''' is a function that is part of the platform library.<br /> platform.hw() returns a numeric value that indicates the CPU speed of the hos...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
platform.hw() returns a numeric value that indicates the CPU speed of the host hardware. The higher the number, the faster the hardware. | platform.hw() returns a numeric value that indicates the CPU speed of the host hardware. The higher the number, the faster the hardware. | ||
<br /> | <br /> | ||
+ | |||
+ | |||
+ | Examples : | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! 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. | ||
+ | <br /> | ||
+ | |||
{{Since|3.2}} | {{Since|3.2}} |
Latest revision as of 13:17, 2 June 2013
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.