Make ReadTSC noexcept

This commit is contained in:
János Benjamin Antal 2022-10-26 11:21:27 +02:00
parent 39c9c215b1
commit 281ae158ec
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -18,7 +18,7 @@ namespace memgraph::utils {
// TSC stands for Time-Stamp Counter
uint64_t ReadTSC();
uint64_t ReadTSC() noexcept;
std::optional<double> GetTSCFrequency();