Skip to content

Instantly share code, notes, and snippets.

View notcome's full-sized avatar

Minsheng Liu notcome

View GitHub Profile
@notcome
notcome / ChronoClockToUTC
Created July 8, 2014 07:31
Convert std::chrono::system_clock::time_point to std::tm
#include <iostream>
#include <ratio>
#include <chrono>
#include <string>
template <typename value_type>
struct timed {
std::chrono::time_point<std::chrono::steady_clock> timestamp;
value_type value;
#C++ 吧的吧友看过来
头疼如何共享代码嘛?来使用 Github 的 Gist 吧……
首先你需要一个 Github 的账号,不知道何为 Github 的现在就去搜索,这太可怕了。嗯嗯!
然后访问 gist dot github dot com,按照指示去做就可以了。方便吧……
最后记着防度娘抽风哦!