Final Platform Layer 0.9.8-beta
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions
Timing functions

This category contains functions for time comparisons. More...

Data Structures

union  fplTimestamp
 A structure storing a timestamp, used for delta measurements only. More...
 

Macros

#define FPL_TIMEOUT_INFINITE
 Infinite timeout constant.
 

Typedefs

typedef uint64_t fplMilliseconds
 A type definition for milliseconds / 64-bit.
 
typedef double fplSeconds
 A type definition for seconds / 64-bit.
 
typedef uint32_t fplTimeoutValue
 A type definition for a timeout value in milliseconds.
 
typedef union fplTimestamp fplTimestamp
 A structure storing a timestamp, used for delta measurements only.
 

Functions

fpl_platform_api fplMilliseconds fplMillisecondsQuery ()
 Gets the current system clock in milliseconds, since some fixed starting point (OS start, System start, etc), used for time delta measurements only.
 
fpl_platform_api fplSeconds fplTimestampElapsed (const fplTimestamp start, const fplTimestamp finish)
 Gets the delta value from two fplTimestamp values in seconds.
 
fpl_platform_api fplTimestamp fplTimestampQuery ()
 Gets the current fplTimestamp with most precision, used for time delta measurements only.
 

Detailed Description

This category contains functions for time comparisons.

Macro Definition Documentation

◆ FPL_TIMEOUT_INFINITE

#define FPL_TIMEOUT_INFINITE

Infinite timeout constant.

Definition at line 4502 of file final_platform_layer.h.

Typedef Documentation

◆ fplMilliseconds

typedef uint64_t fplMilliseconds

A type definition for milliseconds / 64-bit.

Definition at line 4508 of file final_platform_layer.h.

◆ fplSeconds

typedef double fplSeconds

A type definition for seconds / 64-bit.

Definition at line 4505 of file final_platform_layer.h.

◆ fplTimeoutValue

typedef uint32_t fplTimeoutValue

A type definition for a timeout value in milliseconds.

Definition at line 4500 of file final_platform_layer.h.

Function Documentation

◆ fplMillisecondsQuery()

fpl_platform_api fplMilliseconds fplMillisecondsQuery ( )

Gets the current system clock in milliseconds, since some fixed starting point (OS start, System start, etc), used for time delta measurements only.

Returns
Returns the number of milliseconds as fplMilliseconds.

◆ fplTimestampElapsed()

fpl_platform_api fplSeconds fplTimestampElapsed ( const fplTimestamp  start,
const fplTimestamp  finish 
)

Gets the delta value from two fplTimestamp values in seconds.

Returns
Returns the resulting elapsed time in seconds as fplSeconds.

◆ fplTimestampQuery()

fpl_platform_api fplTimestamp fplTimestampQuery ( )

Gets the current fplTimestamp with most precision, used for time delta measurements only.

Returns
Returns the resulting fplTimestamp.
Note
Use fplTimestampElapsed() to get the elapsed time.