Fixed many hardening issues
This commit is contained in:
@@ -90,7 +90,7 @@ namespace asp {
|
||||
const auto start = time();
|
||||
fnc(std::forward<Args>(args)...);
|
||||
const long long timespent = duration_ns(time() - start);
|
||||
formatted_row(gaps, { step_name, thousand_sep(timespent).c_str(), format_time_ns(timespent).c_str() });
|
||||
formatted_row(gaps, { step_name, thousand_sep(timespent).c_str(), format_time_ns(uint64_t(timespent)).c_str() });
|
||||
}
|
||||
|
||||
template <typename T, typename F, size_t N, typename... Args>
|
||||
@@ -101,7 +101,7 @@ namespace asp {
|
||||
const auto start = time();
|
||||
const T res = fnc(std::forward<Args>(args)...);
|
||||
const long long timespent = duration_ns(time() - start);
|
||||
formatted_row(gaps, { step_name, thousand_sep(timespent).c_str(), format_time_ns(timespent).c_str() });
|
||||
formatted_row(gaps, { step_name, thousand_sep(timespent).c_str(), format_time_ns(uint64_t(timespent)).c_str() });
|
||||
return res;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user