Loading...
Searching...
No Matches
Time.h File Reference

Go to the source code of this file.

Classes

struct  sfTime
 Represents a time value. More...
 

Functions

float sfTime_asSeconds (sfTime time)
 Return a time value as a number of seconds.
 
int32_t sfTime_asMilliseconds (sfTime time)
 Return a time value as a number of milliseconds.
 
int64_t sfTime_asMicroseconds (sfTime time)
 Return a time value as a number of microseconds.
 
sfTime sfSeconds (float amount)
 Construct a time value from a number of seconds.
 
sfTime sfMilliseconds (int32_t amount)
 Construct a time value from a number of milliseconds.
 
sfTime sfMicroseconds (int64_t amount)
 Construct a time value from a number of microseconds.
 

Variables

const sfTime sfTime_Zero
 Predefined "zero" time value.
 

Function Documentation

◆ sfMicroseconds()

sfTime sfMicroseconds ( int64_t  amount)

Construct a time value from a number of microseconds.

Parameters
amountNumber of microseconds
Returns
Time value constructed from the amount of microseconds

◆ sfMilliseconds()

sfTime sfMilliseconds ( int32_t  amount)

Construct a time value from a number of milliseconds.

Parameters
amountNumber of milliseconds
Returns
Time value constructed from the amount of milliseconds

◆ sfSeconds()

sfTime sfSeconds ( float  amount)

Construct a time value from a number of seconds.

Parameters
amountNumber of seconds
Returns
Time value constructed from the amount of seconds

◆ sfTime_asMicroseconds()

int64_t sfTime_asMicroseconds ( sfTime  time)

Return a time value as a number of microseconds.

Parameters
timeTime value
Returns
Time in microseconds

◆ sfTime_asMilliseconds()

int32_t sfTime_asMilliseconds ( sfTime  time)

Return a time value as a number of milliseconds.

Parameters
timeTime value
Returns
Time in milliseconds

◆ sfTime_asSeconds()

float sfTime_asSeconds ( sfTime  time)

Return a time value as a number of seconds.

Parameters
timeTime value
Returns
Time in seconds

Variable Documentation

◆ sfTime_Zero

const sfTime sfTime_Zero

Predefined "zero" time value.

Definition at line 46 of file Time.h.