sharkdp / dbg-macro

A dbg(…) macro for C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide an optional timestamp?

MrHate opened this issue · comments

How about providing a macro name to switch whether to print timestamp before each line?

just like:

#define DBG_MACRO_TIMESTAMP
#include <dbg.h>

then

(13:18:53)[demo.cpp:34 (main)] test_int = 42 (int)

closed via #91 by @MrHate