0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 08:12:37 +01:00

ircd::db::env: Hot section time callbacks.

This commit is contained in:
Jason Volk 2019-10-09 23:00:24 -07:00
parent e1e67f7603
commit 961ea26d1b

View file

@ -720,6 +720,7 @@ catch(const std::exception &e)
return error_to_status{e};
}
[[gnu::hot]]
uint64_t
ircd::db::database::env::NowMicros()
noexcept
@ -729,6 +730,7 @@ noexcept
/// Bug in rocksdb causes this to not be called all the time, specifically
/// for perf events.
[[gnu::hot]]
uint64_t
ircd::db::database::env::NowNanos()
noexcept