#include #include namespace llarp { typedef std::chrono::steady_clock clock_t; template static IntType time_since_epoch() { return std::chrono::duration_cast( llarp::clock_t::now().time_since_epoch()) .count(); } } // namespace llarp extern "C" { llarp_time_t llarp_time_now_ms() { return llarp::time_since_epoch(); } llarp_seconds_t llarp_time_now_sec() { return llarp::time_since_epoch(); } }