<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>faith_and_brave</author_name>
  <author_url>https://blog.hatena.ne.jp/faith_and_brave/</author_url>
  <blog_title>Faith and Brave - C++で遊ぼう</blog_title>
  <blog_url>https://faithandbrave.hateblo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>C++11から導入された時間ユーティリティライブラリChronoには、durationという経過時間を表す型があります。 この型の第1テンプレート引数には経過時間を表す数値型、第2テンプレートには単位を表すコンパイル時有理数を指定します。 using milliseconds = duration&lt;integer_type, ratio&lt;1, 1000&gt;&gt;; using seconds = duration&lt;integer_type, ratio&lt;1, 1&gt;&gt;; この第2テンプレート引数を使って、ミリ秒から秒へ、秒からミリ秒へ、といった単位の変換ができます。 たとえば、1秒をミリ秒に変換すると…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F2014%2F02%2F03%2F151841&quot; title=&quot;duration_castと浮動小数点数型 - Faith and Brave - 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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-02-03 15:18:41</published>
  <title>duration_castと浮動小数点数型</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/2014/02/03/151841</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
