{"title":" clock_gettime \u306e\u4f7f\u3044\u65b9","provider_name":"Hatena Blog","height":"190","author_url":"https://blog.hatena.ne.jp/iww/","url":"https://iww.hateblo.jp/entry/20161012/CLOCK_REALTIME","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","categories":["C"],"published":"2016-10-12 00:00:00","provider_url":"https://hatena.blog","blog_title":"\u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12","image_url":null,"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>","width":"100%","author_name":"iww","blog_url":"https://iww.hateblo.jp/","version":"1.0","type":"rich"}