summaryrefslogtreecommitdiff
path: root/include/mbgl/platform/time.hpp
blob: 8769524514d0df4ebf88606f4c1149fc11518959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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