Home ·

# Utils QML Type

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

Import Statement: | import SAMBA 3.2

- List of all members, including inherited members

## Methods

- string hex(number value, number digits)
- void msleep(int msecs)
- string parseInteger(string text)
- void sleep(int secs)
- void usleep(int usecs)

## 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.