diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-07-20 22:51:23 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-07-20 22:51:23 +0200 |
| commit | f64a5a67a37015bd5066efd9b1edb6ac3e0b7a97 (patch) | |
| tree | 52984e67e1cde946c58a8e266a88a0dafe85419a /tools/timerun.h | |
| parent | 5727f06c5694a4831881322876e3ba4d8ce3b743 (diff) | |
| download | nissy-core-f64a5a67a37015bd5066efd9b1edb6ac3e0b7a97.tar.gz nissy-core-f64a5a67a37015bd5066efd9b1edb6ac3e0b7a97.zip | |
Fixed gendata tool and cleaned up some stuff
Diffstat (limited to 'tools/timerun.h')
| -rw-r--r-- | tools/timerun.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/timerun.h b/tools/timerun.h index dabfde0..58a8e7a 100644 --- a/tools/timerun.h +++ b/tools/timerun.h | |||
| @@ -1,9 +1,21 @@ | |||
| 1 | #include <stdarg.h> | ||
| 1 | #include <stdbool.h> | 2 | #include <stdbool.h> |
| 2 | #include <inttypes.h> | 3 | #include <inttypes.h> |
| 3 | #include <stdio.h> | 4 | #include <stdio.h> |
| 4 | #include <stdlib.h> | 5 | #include <stdlib.h> |
| 5 | #include <time.h> | 6 | #include <time.h> |
| 6 | 7 | ||
| 8 | void | ||
| 9 | log_stderr(const char *str, ...) | ||
| 10 | { | ||
| 11 | va_list args; | ||
| 12 | |||
| 13 | va_start(args, str); | ||
| 14 | vfprintf(stderr, str, args); | ||
| 15 | va_end(args); | ||
| 16 | } | ||
| 17 | |||
| 18 | |||
| 7 | double | 19 | double |
| 8 | timerun(void (*run)(void), char *name) | 20 | timerun(void (*run)(void), char *name) |
| 9 | { | 21 | { |
