Make ReadTSC
noexcept
This commit is contained in:
parent
39c9c215b1
commit
281ae158ec
@ -18,7 +18,7 @@ extern "C" {
|
||||
#include "utils/tsc.hpp"
|
||||
|
||||
namespace memgraph::utils {
|
||||
uint64_t ReadTSC() { return rdtsc(); }
|
||||
uint64_t ReadTSC() noexcept { return rdtsc(); }
|
||||
|
||||
std::optional<double> GetTSCFrequency() {
|
||||
// init is only needed for fetching frequency
|
||||
|
@ -18,7 +18,7 @@ namespace memgraph::utils {
|
||||
|
||||
// TSC stands for Time-Stamp Counter
|
||||
|
||||
uint64_t ReadTSC();
|
||||
uint64_t ReadTSC() noexcept;
|
||||
|
||||
std::optional<double> GetTSCFrequency();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user