We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make explicit the time units.
struct field_caller : public ts_caller { detail::field_caller& field(const std::string& k, const std::string& v) { return _f_s(',', k, v); } detail::field_caller& field(const std::string& k, bool v) { return _f_b(',', k, v); } detail::field_caller& field(const std::string& k, short v) { return _f_i(',', k, v); } detail::field_caller& field(const std::string& k, int v) { return _f_i(',', k, v); } detail::field_caller& field(const std::string& k, long v) { return _f_i(',', k, v); } detail::field_caller& field(const std::string& k, long long v) { return _f_i(',', k, v); } detail::field_caller& field(const std::string& k, double v, int prec = 2) { return _f_f(',', k, v, prec); } detail::ts_caller& timestamp_ns(unsigned long long ts) { return _ts(ts); } detail::ts_caller& timestamp_us(unsigned long long ts) { return timestamp_ns(1000*ts); } detail::ts_caller& timestamp_ms(unsigned long long ts) { return timestamp_us(1000*ts); } detail::ts_caller& timestamp_s(unsigned long long ts) { return timestamp_ms(1000*ts); } };
The text was updated successfully, but these errors were encountered:
Thank you for your contributions. I'll check it and merge them then. : )
Sorry, something went wrong.
No branches or pull requests
Make explicit the time units.
The text was updated successfully, but these errors were encountered: