<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iww</author_name>
  <author_url>https://blog.hatena.ne.jp/iww/</author_url>
  <blog_title>揮発性のメモ２</blog_title>
  <blog_url>https://iww.hateblo.jp/</blog_url>
  <categories>
    <anon>C</anon>
    <anon>Linux</anon>
  </categories>
  <description>gettimeofdayの代わりにこれ使えということで Man page of CLOCK_GETRES なんでman(2)とman(3)両方にあるんだろう。システムコールかこれ？ #include &lt;time.h&gt; #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; int main() { struct timespec ts; if( clock_gettime(CLOCK_REALTIME,&amp;ts)&lt;0 ){ perror(&quot;clock_gettime&quot;); exit(1); } printf(&quot;sizeof(tv_sec)=%d\n&quot;,sizeof(ts.t…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20100415%2Fgettimeofday&quot; title=&quot;clock_gettime - 揮発性のメモ２&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-04-15 00:00:01</published>
  <title>clock_gettime</title>
  <type>rich</type>
  <url>https://iww.hateblo.jp/entry/20100415/gettimeofday</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
