<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fuku_dw</author_name>
  <author_url>https://blog.hatena.ne.jp/fuku_dw/</author_url>
  <blog_title>日進月歩</blog_title>
  <blog_url>https://fuku-dw.hatenadiary.org/</blog_url>
  <categories>
    <anon>C言語</anon>
  </categories>
  <description>C言語において時間の計測を行う方法は複数ありそれぞれの特徴を把握して最適なものを選択しなければならない.time time関数を用いる場合は秒単位の精度でしか測定されない. またプロセスの実時間の測定を行う.#include #include int main(){ time_t t1,t2; t1 = time(NULL); /* 処理の記述 */ t2 = time(NULL); printf(&quot;time = %d[s]\n&quot;, (int)(t2-t1)); return 0; }clock clock関数をの場合にはtimeよりも精度良く計測が出来る. 具体的な精度についてはシステム依存…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffuku-dw.hatenadiary.org%2Fentry%2F20111219%2F1324289674&quot; title=&quot;時間の計測を行う - 日進月歩&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>2011-12-19 19:14:34</published>
  <title>時間の計測を行う</title>
  <type>rich</type>
  <url>https://fuku-dw.hatenadiary.org/entry/20111219/1324289674</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
