Changes

Jump to navigation Jump to search

platform.hw

377 bytes added, 14:17, 2 June 2013
no edit summary
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 />
 
<br />
 +
    
{{Since|3.2}}
 
{{Since|3.2}}

Navigation menu