Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
14 lines
323 B
C++
14 lines
323 B
C++
#pragma once
|
|
|
|
#include <chrono>
|
|
|
|
namespace mln {
|
|
namespace platform {
|
|
|
|
// Returns the current time. Abstracted because some platforms
|
|
// will not allow direct access to the current time via syscall.
|
|
std::chrono::time_point<std::chrono::system_clock, std::chrono::seconds> now();
|
|
|
|
} // namespace platform
|
|
} // namespace mln
|