{"url":"https://iww.hateblo.jp/entry/20161012/CLOCK_REALTIME","provider_url":"https://hatena.blog","blog_url":"https://iww.hateblo.jp/","height":"190","type":"rich","provider_name":"Hatena Blog","categories":["C"],"published":"2016-10-12 00:00:00","description":"Man page of CLOCK_GETRES #include <stdio.h> #include <time.h> char *getnow() { static char buf[32]; struct timespec t; struct tm tm; clock_gettime(CLOCK_REALTIME, &t); localtime_r(&t.tv_sec, &tm); strftime(buf, 32, \"%Y-%m-%d %H:%M:%S.\", &tm); sprintf(buf+20, \"%03d\", (int)t.tv_nsec/1000000); return b\u2026","author_name":"iww","image_url":null,"title":" clock_gettime \u306e\u4f7f\u3044\u65b9","blog_title":"\u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20161012%2FCLOCK_REALTIME\" title=\" clock_gettime \u306e\u4f7f\u3044\u65b9 - \u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/iww/","width":"100%"}