diff options
Diffstat (limited to 'src/misc.h')
| -rw-r--r-- | src/misc.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/misc.h b/src/misc.h new file mode 100644 index 0000000..133b7eb --- /dev/null +++ b/src/misc.h @@ -0,0 +1,18 @@ +#ifndef MISC_H +#define MISC_H + +#include <stdint.h> +#include <stdlib.h> + +/* + Returns the current time as milliseconds. The return value can only be + compared to another return value of the function. +*/ +int64_t GetCurrentTime(); + +/* + Simple hexdump to stdout. +*/ +void DumpHex(const void* data, size_t size); + +#endif |
