#include "delta_times.h"
Functions | |
int | init_delta_times () |
int | convert_delta_times_ () |
int | restore_delta_times () |
void | finish_delta_times () |
int | convert_delta_times () |
int init_delta_times | ( | ) |
This function allocates memory for a local delta time structure and makes a temporary copy of the delta time table. It returns 0 in case of success and returns 1 otherwise.
int convert_delta_times_ | ( | ) |
This function converts the orignal relative time unit (ticks) to the chosen absolute time unit (miliseconds). It returns 0 in case of success and returns 1 otherwise.
int restore_delta_times | ( | ) |
This function copies back the delta times from the local structure to the original delta time table. It returns 0 in case of success and returns 1 otherwise.
void finish_delta_times | ( | ) |
This function deallocates the memory of the local delta time structure.
int convert_delta_times | ( | ) |
This function is called by the main function and it handles the other functions above. It takes care of the return values as well. It returns 0 in case of success and returns 1 otherwise.