aboutsummaryrefslogtreecommitdiff
path: root/src/misc.h
blob: 0634bb6a27b281655ed40f2ef1b791ff767eefc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef MISC_H
#define MISC_H

#include "config.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 MqttGetCurrentTime();

/*
    Simple hexdump to stdout.
*/
void DumpHex(const void* data, size_t size);

#endif