FS2_Open
Open source remastering of the Freespace 2 engine
|
#include "globalincs/pstypes.h"
Go to the source code of this file.
Macros | |
#define | TIMESTAMP_FREQUENCY 1000 |
#define | timestamp_rand(a, b) timestamp((myrand()%((b)-(a)+1))+(a)) |
#define | timestamp_elapsed(stamp) ( (stamp!=0) ? (timestamp_ticker >= (stamp) ? 1 : 0) : 0 ) |
#define | timestamp_valid(stamp) ((stamp==0) ? 0 : 1 ) |
#define | timestamp_elapsed_safe(_a, _b) ( (_a != 0) ? (((timestamp_ticker >= (_a)) || (timestamp_ticker < (_a - (_b + 100)))) ? 1 : 0) : 1 ) |
Functions | |
void | timer_init () |
void | timer_close () |
fix | timer_get_fixed_seconds () |
fix | timer_get_fixed_secondsX () |
fix | timer_get_approx_seconds () |
int | timer_get_milliseconds () |
int | timer_get_microseconds () |
uint | timer_get_high_res_microseconds () |
int | timer_get_seconds () |
void | timestamp_reset () |
void | timestamp_inc (int frametime_ms) |
int | timestamp (int delta_ms) |
int | timestamp () |
int | timestamp_until (int stamp) |
int | timestamp_has_time_elapsed (int stamp, int time) |
Variables | |
int | timestamp_ticker |
#define timestamp_elapsed | ( | stamp | ) | ( (stamp!=0) ? (timestamp_ticker >= (stamp) ? 1 : 0) : 0 ) |
#define timestamp_elapsed_safe | ( | _a, | |
_b | |||
) | ( (_a != 0) ? (((timestamp_ticker >= (_a)) || (timestamp_ticker < (_a - (_b + 100)))) ? 1 : 0) : 1 ) |