iceberg-cpp
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
timer.h File Reference

Define metrics timers. More...

#include <atomic>
#include <chrono>
#include <cstdint>
#include <functional>
#include <memory>
#include <string_view>
#include <type_traits>
#include <utility>
#include "iceberg/iceberg_export.h"

Go to the source code of this file.

Classes

class  iceberg::Timer
 Abstract timer for measuring operation durations. More...
 
class  iceberg::Timer::Timed
 RAII guard that records elapsed time into a non-owning Timer on destruction. More...
 
class  iceberg::DefaultTimer
 Thread-safe timer backed by std::atomic<int64_t>. More...
 

Namespaces

namespace  iceberg
 Core Apache Iceberg C++ APIs.
 

Enumerations

enum class  iceberg::TimerUnit {
  kNanoseconds , kMicroseconds , kMilliseconds , kSeconds ,
  kMinutes , kHours , kDays
}
 Time units supported by Timer.
 

Functions

ICEBERG_EXPORT constexpr std::string_view iceberg::ToString (TimerUnit unit) noexcept
 String representation of a TimerUnit.
 

Detailed Description

Define metrics timers.