Hacky-DH / cpputils

utils for cpp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cpputils

utils for cpp(c++11)

simple log

example

logf("DEBUG", "debug %s,%d", str,num);
log("DEBUG")<<"debug "<<str<<","<<num<<std::endl;

timer

Timer t;
int64_t e = t.Elapsed();

cout<< t.ElapsedStr();

random generator

random_generator rg;
size_t rand = rg.next<size_t>(1,5);

About

utils for cpp

License:MIT License


Languages

Language:C++ 95.0%Language:CMake 5.0%