Scratch for Java

Timer::forMillis()

Checks if the specified amount of milliseconds has passed since the method was first called. If the method is called for the first time, it initializes the start time.

Syntax

Java

.forMillis(millis)

Parameters

Name Data Type Description
millis int the number of milliseconds to check against

Return

boolean

forMillis()