Home ·

Utils QML Type

The Utils type is a singleton that contains misc. utility functions. More...

Import Statement: import SAMBA 3.2

Methods

Detailed Description

Method Documentation

string hex(number value, number digits)

Convert value to a hexadecimal string with at least digits.

Returns the hexadecimal string


void msleep(int msecs)

Pause the current thread for msecs milliseconds.


string parseInteger(string text)

Convert decimal or hexadecimal string to a number.

Returns the parsed number, or Number.NaN if the string could not be parsed.


void sleep(int secs)

Pause the current thread for secs seconds.


void usleep(int usecs)

Pause the current thread for usecs microseconds.



Copyright © 2018 Microchip Technology
SAM-BA Documentation