diff options
Diffstat (limited to 'tools/tool.h')
| -rw-r--r-- | tools/tool.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/tool.h b/tools/tool.h index d75342d..7995621 100644 --- a/tools/tool.h +++ b/tools/tool.h | |||
| @@ -18,6 +18,16 @@ log_stderr(const char *str, ...) | |||
| 18 | va_end(args); | 18 | va_end(args); |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | static void | ||
| 22 | write_stdout(const char *str, ...) | ||
| 23 | { | ||
| 24 | va_list args; | ||
| 25 | |||
| 26 | va_start(args, str); | ||
| 27 | vfprintf(stdout, str, args); | ||
| 28 | va_end(args); | ||
| 29 | } | ||
| 30 | |||
| 21 | static double | 31 | static double |
| 22 | timerun(void (*run)(void), char *name) | 32 | timerun(void (*run)(void), char *name) |
| 23 | { | 33 | { |
