Scratch for Java

Timer::intervalMillis()

Checks if the specified interval in milliseconds has passed.

Syntax

Java

.intervalMillis(millis)
.intervalMillis(millis, skipFirst)
.intervalMillis(millis1, millis2)
.intervalMillis(millis1, millis2, skipFirst)

Parameters

Name Data Type Description
millis int the interval in milliseconds to check
skipFirst boolean if true, the first interval will be skipped
millis1 int the first interval in milliseconds to check
millis2 int the second interval in milliseconds to check

Return

boolean

intervalMillis()