Create TIME_DIFF macro
This commit is contained in:
parent
e12a329fbc
commit
568b40a70b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue