Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2018-03-19 18:35:25 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2018-03-21 15:56:49 +0300
commitf7e82cf6e5a81c4ed61678314b050e55748261ed (patch)
tree311c3aa0803f208199af30ad5d0a86c61f81f8a4 /base
parent7091b13ea9623840a6569ad154953879aea6be11 (diff)
Added bookmarks backup and conversion
Diffstat (limited to 'base')
-rw-r--r--base/internal/message.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/base/internal/message.hpp b/base/internal/message.hpp
index 7fff004c01..2b549d8409 100644
--- a/base/internal/message.hpp
+++ b/base/internal/message.hpp
@@ -1,6 +1,8 @@
#pragma once
#include <array>
+#include <chrono>
+#include <ctime>
#include <deque>
#include <functional>
#include <initializer_list>
@@ -64,6 +66,12 @@ inline std::string DebugPrint(unsigned char t)
return DebugPrint(static_cast<unsigned int>(t));
}
+inline std::string DebugPrint(std::chrono::time_point<std::chrono::system_clock> const & ts)
+{
+ auto t = std::chrono::system_clock::to_time_t(ts);
+ return std::ctime(&t);
+}
+
template <typename U, typename V> inline std::string DebugPrint(std::pair<U,V> const & p)
{
std::ostringstream out;