Changes

Jump to navigation Jump to search
71 bytes added ,  19:36, 25 September 2021
m
Line 137: Line 137:  
int main () {
 
int main () {
 
double deltaTime;
 
double deltaTime;
 +
settimer((uint64_t)0); //So we don't have to start with a huge number.
 
uint64_t deltaTimeStart = gettime();
 
uint64_t deltaTimeStart = gettime();
 
while (1) {
 
while (1) {
Line 147: Line 148:     
Do not use clock() from time.h or any other library, clock() will return 4294967295 because the number of ticks is much larger than 32 bits.  The function body for gettime() can be found in timesupp.c.
 
Do not use clock() from time.h or any other library, clock() will return 4294967295 because the number of ticks is much larger than 32 bits.  The function body for gettime() can be found in timesupp.c.
      
== GX Tips ==
 
== GX Tips ==

Navigation menu