39 return timestamp_ms & (0xFFFFFFFFFFFFFFFFLL << (resolution << 1));
47 return timestamp_ms | ~(0xFFFFFFFFFFFFFFFFLL << (resolution << 1));
53 return steps << (resolution << 1);
Umbrella header for the roo_monitoring module.
static constexpr int64_t timestamp_ms_floor(int64_t timestamp_ms, Resolution resolution)
Rounds the timestamp down to the specified resolution bucket.
static const Resolution kMaxResolution
Maximum supported resolution.
Resolution
Time resolution used for log and vault files.
@ kResolution_68719476736_ms
@ kResolution_1073741824_ms
@ kResolution_4294967296_ms
@ kResolution_17179869184_ms
@ kResolution_268435456_ms
@ kResolution_67108864_ms
@ kResolution_16777216_ms
static constexpr int64_t timestamp_increment(int64_t steps, Resolution resolution)
Returns the timestamp delta for the given number of resolution steps.
static constexpr int64_t timestamp_ms_ceil(int64_t timestamp_ms, Resolution resolution)
Rounds the timestamp up to the specified resolution bucket.