|
|
@@ -40,7 +40,7 @@ unsigned int IZ_TimerElapsedRaw() { |
|
|
|
* @sa IZ_TimerElapsedRaw() |
|
|
|
*/ |
|
|
|
char* IZ_TimerElapsed() { |
|
|
|
static char buffer[32]; |
|
|
|
static char buffer[48]; |
|
|
|
struct timespec t; |
|
|
|
clock_gettime(CLOCK_MONOTONIC, &t); |
|
|
|
unsigned int seconds = t.tv_sec - IZ_TIMER_START_TIMESTAMP; |
|
|
@@ -58,7 +58,7 @@ char* IZ_TimerElapsed() { |
|
|
|
char* IZ_TimerNow() { |
|
|
|
struct timespec t; |
|
|
|
clock_gettime(CLOCK_REALTIME, &t); |
|
|
|
static char buffer[32]; |
|
|
|
static char buffer[48]; |
|
|
|
unsigned int seconds = t.tv_sec; |
|
|
|
unsigned int milliseconds = t.tv_nsec / 1000000; |
|
|
|
static char formatted[32]; |
|
|
@@ -75,7 +75,7 @@ char* IZ_TimerNow() { |
|
|
|
char* IZ_TimerNowPathSafe() { |
|
|
|
struct timespec t; |
|
|
|
clock_gettime(CLOCK_REALTIME, &t); |
|
|
|
static char buffer[32]; |
|
|
|
static char buffer[48]; |
|
|
|
unsigned int seconds = t.tv_sec; |
|
|
|
unsigned int milliseconds = t.tv_nsec / 1000000; |
|
|
|
static char formatted[32]; |
|
|
|