deltaTime

Environment

Description

Seconds elapsed since the last frame. Useful for frame-rate-independent animation.

Syntax

deltaTime

Parameters

None

Returns

float

Related

Under the Hood

From Processing.h:

float deltaTime = 0.0f;

Under the Hood

From Processing.cpp:

deltaTime=(float)elapsed;