Commit 9443c6e9 authored by Sebastian Wolf's avatar Sebastian Wolf

Revert brocken clock change

parent 82aca2ca
Pipeline #1481 passed with stages
in 17 minutes and 56 seconds
......@@ -29,9 +29,9 @@
namespace xerus {
namespace misc {
///@brief: Returns the time since epoche in microseconds.
size_t uTime();
uint64 uTime();
///@brief: Returns the time since epoche in milliseconds.
size_t mTime();
uint64 mTime();
}
}
......@@ -27,14 +27,14 @@
namespace xerus {
namespace misc {
size_t uTime() {
return static_cast<size_t>(std::chrono::duration_cast<std::chrono::microseconds>
(std::chrono::steady_clock::now().time_since_epoch()).count());
uint64 uTime() {
return static_cast<uint64>(std::chrono::duration_cast<std::chrono::microseconds>
(std::chrono::system_clock::now().time_since_epoch()).count());
}
size_t mTime() {
return static_cast<size_t>(std::chrono::duration_cast<std::chrono::milliseconds>
(std::chrono::steady_clock::now().time_since_epoch()).count());
uint64 mTime() {
return static_cast<uint64>(std::chrono::duration_cast<std::chrono::milliseconds>
(std::chrono::system_clock::now().time_since_epoch()).count());
}
} // namespace misc
} // namespace xerus
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment