{"image_url":null,"provider_name":"Hatena Blog","type":"rich","categories":["C","Linux"],"description":"gettimeofday\u306e\u4ee3\u308f\u308a\u306b\u3053\u308c\u4f7f\u3048\u3068\u3044\u3046\u3053\u3068\u3067 Man page of CLOCK_GETRES \u306a\u3093\u3067man(2)\u3068man(3)\u4e21\u65b9\u306b\u3042\u308b\u3093\u3060\u308d\u3046\u3002\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u304b\u3053\u308c\uff1f #include <time.h> #include <stdio.h> #include <stdlib.h> int main() { struct timespec ts; if( clock_gettime(CLOCK_REALTIME,&ts)<0 ){ perror(\"clock_gettime\"); exit(1); } printf(\"sizeof(tv_sec)=%d\\n\",sizeof(ts.t\u2026","width":"100%","published":"2010-04-15 00:00:01","url":"https://iww.hateblo.jp/entry/20100415/gettimeofday","author_name":"iww","blog_url":"https://iww.hateblo.jp/","version":"1.0","blog_title":"\u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12","author_url":"https://blog.hatena.ne.jp/iww/","title":"clock_gettime","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20100415%2Fgettimeofday\" title=\"clock_gettime - \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>","height":"190"}