use spdlog for logging in ws + unittest + remove un-needed mutex

This commit is contained in:
Benjamin Sergeant
2019-05-09 15:30:44 -07:00
parent 7c30c8aa07
commit dc1f9fb243
114 changed files with 29168 additions and 6 deletions

34
third_party/spdlog/bench/utils.h vendored Normal file
View File

@ -0,0 +1,34 @@
//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
#include <iomanip>
#include <locale>
#include <sstream>
namespace utils {
template<typename T>
inline std::string format(const T &value)
{
static std::locale loc("");
std::stringstream ss;
ss.imbue(loc);
ss << value;
return ss.str();
}
template<>
inline std::string format(const double &value)
{
static std::locale loc("");
std::stringstream ss;
ss.imbue(loc);
ss << std::fixed << std::setprecision(1) << value;
return ss.str();
}
} // namespace utils