{"categories":["Linux"],"published":"2018-01-08 16:55:48","author_name":"yohei-a","provider_name":"Hatena Blog","height":"190","url":"https://yohei-a.hatenablog.jp/entry/20180108/1515398148","blog_url":"https://yohei-a.hatenablog.jp/","blog_title":"ablog","title":"Linux \u3067 clocksource \u304c xen \u3068 tsc \u3067 gettimeofday(2) \u306e\u6027\u80fd\u3092\u6bd4\u8f03\u3059\u308b","version":"1.0","description":"Linux \u3067 clocksource \u304c xen \u3068 tsc \u3067 gettimeofday(2) \u306e\u6027\u80fd\u3092\u6bd4\u8f03\u3057\u305f\u30e1\u30e2\u3002 \u30c6\u30b9\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b 1\u5104\u56de gettimeofday(2) \u3092\u5b9f\u884c\u3059\u308b\u30c6\u30b9\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\uff08gettimeofday.c\uff09 #include <stdio.h> #include <sys/time.h> int main(void) { struct timeval tv; int count; for (count = 1; count <= 10000000; count++) { gettimeofday(&tv, NULL); } return 1; \u2026","provider_url":"https://hatena.blog","width":"100%","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohei-a.hatenablog.jp%2Fentry%2F20180108%2F1515398148\" title=\"Linux \u3067 clocksource \u304c xen \u3068 tsc \u3067 gettimeofday(2) \u306e\u6027\u80fd\u3092\u6bd4\u8f03\u3059\u308b - ablog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","author_url":"https://blog.hatena.ne.jp/yohei-a/"}