<?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>#include &lt;stdio.h&gt; #include &lt;time.h&gt; #include &lt;signal.h&gt; #include &lt;errno.h&gt; /// ちゃんとミリ秒寝る関数 int sleep_msec(long long msec) { struct timespec ts; ts.tv_sec = msec/1000; ts.tv_nsec = (msec%1000)*1000000; int result; for(;;){ result = nanosleep(&amp;ts, &amp;ts); if(result==0 || errno!=EINTR) break; // puts(&quot;も…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20240520%2Fmsec_sleep&quot; title=&quot; Cで、ミリ秒スリープする - 揮発性のメモ２&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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/42132/1685946694840016</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-05-20 08:30:00</published>
  <title> Cで、ミリ秒スリープする</title>
  <type>rich</type>
  <url>https://iww.hateblo.jp/entry/20240520/msec_sleep</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
