Files
MapLibreParticleLab/include/mbgl/platform/time.hpp
Thiago Marcos P. Santos ee1d700a9b [core] Add platform abstractions for utils::now()
Some platforms might require special permissions or custom APIs
to access the current time of the day.
2020-04-20 19:03:46 +03:00

14 lines
325 B
C++

#pragma once
#include <chrono>
namespace mbgl {
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 mbgl