mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
407 B
C++
25 lines
407 B
C++
#ifndef LLARP_TIME_HPP
|
|
#define LLARP_TIME_HPP
|
|
|
|
#include <util/types.hpp>
|
|
#include <chrono>
|
|
|
|
#include <chrono>
|
|
using namespace std::chrono_literals;
|
|
|
|
namespace llarp
|
|
{
|
|
/// get time right now as milliseconds, this is monotonic
|
|
llarp_time_t
|
|
time_now_ms();
|
|
|
|
using Time_t = std::chrono::milliseconds;
|
|
|
|
/// get time right now as a Time_t, monotonic
|
|
Time_t
|
|
time_now();
|
|
|
|
} // namespace llarp
|
|
|
|
#endif
|