# counter
function counter(clock)Return the counter value.
| Parameter | Type | Default | Description |
|---|---|---|---|
clock | dynamic | — | clock value consumed by this operation. |
src/miniquake2/platform/system.mlProvides miniquake2 platform system facilities for this project.
miniquake2/native.ml as native → src/miniquake2/native.mlminiquake2.platform.system.Clock struct
function counter(clock)Return the counter value.
| Parameter | Type | Default | Description |
|---|---|---|---|
clock | dynamic | — | clock value consumed by this operation. |
function createClock()Create clock.
function handleCount()Handle count.
function milliseconds(clock)Return the milliseconds value.
| Parameter | Type | Default | Description |
|---|---|---|---|
clock | dynamic | — | clock value consumed by this operation. |
function sleep(millisecondsToWait)Return the sleep value.
| Parameter | Type | Default | Description |
|---|---|---|---|
millisecondsToWait | dynamic | — | millisecondsToWait value consumed by this operation. |