GBDK 2020 Docs
4.1.1
API Documentation for GBDK 2020
|
Go to the source code of this file.
Macros | |
#define | CLOCKS_PER_SEC 60 |
Typedefs | |
typedef uint16_t | time_t |
Functions | |
clock_t | clock (void) OLDCALL |
time_t | time (time_t *t) |
Sort of ANSI compliant time functions.
#define CLOCKS_PER_SEC 60 |
clock_t clock | ( | void | ) |
Returns an approximation of processor time used by the program in Clocks
The value returned is the CPU time (ticks) used so far as a clock_t.
To get the number of seconds used, divide by CLOCKS_PER_SEC.
This is based on sys_time, which will wrap around every ~18 minutes. (unsigned 16 bits = 65535 / 60 / 60 = 18.2)