aboutsummaryrefslogtreecommitdiff
path: root/tools/timerun.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-07-20 22:51:23 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-07-20 22:51:23 +0200
commitf64a5a67a37015bd5066efd9b1edb6ac3e0b7a97 (patch)
tree52984e67e1cde946c58a8e266a88a0dafe85419a /tools/timerun.h
parent5727f06c5694a4831881322876e3ba4d8ce3b743 (diff)
downloadnissy-core-f64a5a67a37015bd5066efd9b1edb6ac3e0b7a97.tar.gz
nissy-core-f64a5a67a37015bd5066efd9b1edb6ac3e0b7a97.zip
Fixed gendata tool and cleaned up some stuff
Diffstat (limited to '')
-rw-r--r--tools/timerun.h12
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
8void
9log_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
7double 19double
8timerun(void (*run)(void), char *name) 20timerun(void (*run)(void), char *name)
9{ 21{

Generated with cgit - Back to sebastiano.tronto.net