<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kibayos</author_name>
  <author_url>https://blog.hatena.ne.jp/kibayos/</author_url>
  <blog_title>kibayos日記</blog_title>
  <blog_url>https://kibayos.hatenadiary.org/</blog_url>
  <categories>
    <anon>tech</anon>
  </categories>
  <description>昨日のP2PSIP勉強会で、時間計測の誤差について話題になってました。実装の変化で関数の精度も変わってきてますので、自分の頭の整理も兼ねてちょっとまとめてみました。 経過時間の計測 何も知らずに Linux*1で、timeコマンドもしくは times関数を使うと精度はtick（4msから10ms*2）に制限されてしまいます。WindowsでGetTickTimeを使っても同様です。これは、Javaで System.currentTimeMillis() を使う場合も同様でした。ミリ秒以下の精度を求める場合は、以下がお薦めです。 Linux, Mac OS X gettimeofday() マイ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkibayos.hatenadiary.org%2Fentry%2F20090914%2F1252912209&quot; title=&quot; 時間の計り方 - kibayos日記&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-ak.f.st-hatena.com/images/fotolife/k/kibayos/20090914/20090914190001.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-09-14 16:10:09</published>
  <title> 時間の計り方</title>
  <type>rich</type>
  <url>https://kibayos.hatenadiary.org/entry/20090914/1252912209</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
