mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
bench # threads can be passed at cmd line as first arg
This commit is contained in:
@@ -36,10 +36,14 @@ void init()
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main(int, char*[])
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
int thread_count = 10;
|
||||
if(argc > 1)
|
||||
thread_count = atoi(argv[1]);
|
||||
|
||||
int howmany = 1000000;
|
||||
|
||||
|
||||
init();
|
||||
logging::add_common_attributes();
|
||||
|
Reference in New Issue
Block a user