DarkBASIC Professional Help File

DX11 GET HIGH RESOLUTION DELTA TIME

Retrieves the delta time (in seconds) between the two provided high precision tick values
(as returned by DX11 GET HIGH RESOLUTION TICK). By comparing the ticks of the current and previous frame time
you can use this function to implement timer based movement - you would simply multiply a "per second" movement value
by the factor returned by this function in each frame.

Syntax

    Return Double float = DX11 GET HIGH RESOLUTION DELTA TIME(startTime, stopTime)

Parameters

    startTime

> Double integer
> The starting high resolution tick (should be recorded before the second one!).

    stopTime

> Double integer
> The stopping ("current") high resolution tick (should be recorded after the first one!).

Returns

The time in seconds between the two provided high resolution tick values.

See also

CORE Functions Menu
DX11 Function Categories