Create TIME_DIFF macro

This commit is contained in:
Aaro Altonen 2020-07-28 10:35:21 +03:00
parent 00d10cd0b7
commit 0d033cda59
1 changed files with 2 additions and 0 deletions

View File

@ -202,6 +202,8 @@ typedef struct rtp_ctx_conf {
extern thread_local rtp_error_t rtp_errno;
#define TIME_DIFF(s, e, u) ((ssize_t)std::chrono::duration_cast<std::chrono::u>(e - s).count())
static inline void hex_dump(uint8_t *buf, size_t len)
{
if (!buf)