src/libminisyncpp/minisync.cpp
/*
 * Get the current time as a std::chrono::time_point, adjusted using the current relative offset and drift.
 */
Get the current time as a std::chrono::time_point, adjusted using the current relative offset and drift.
Get the current time as a std :: chrono :: time_point adjusted using the current relative offset and drift .
std::chrono::time_point<std::chrono::system_clock, MiniSync::us_t> MiniSync::Algorithms::Base::getCurrentAdjustedTime()
{
    auto t_now = std::chrono::system_clock::now().time_since_epoch();
    return std::chrono::time_point<std::chrono::system_clock, us_t>{
        this->currentDrift.value * t_now +
        this->currentOffset.value
    };
}
std :: chrono :: time_point < std :: chrono :: system_clock , MiniSync :: us_t > MiniSync :: Algorithms :: Base :: getCurrentAdjustedTime ( ) { auto t_now = std :: chrono :: system_clock :: now ( ) . time_since_epoch ( ) ; return std :: chrono :: time_point < std :: chrono :: system_clock , us_t > { this -> currentDrift . value * t_now + this -> currentOffset . value } ; }
Get the current time as a std::chrono::time_point, adjusted using the current relative offset and drift.
Get the current time as a std :: chrono :: time_point adjusted using the current relative offset and drift .