<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>posturan</author_name>
  <author_url>https://blog.hatena.ne.jp/posturan/</author_url>
  <blog_title>Oboe吹きプログラマの黙示録</blog_title>
  <blog_url>https://oboe2uran.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>それでも、これしかないという時の為に、、、 public static Consumer&lt;Integer&gt; sleepSecApprox(long precision){ return t-&gt;{ LocalDateTime tc = LocalDateTime.now().plusSeconds(t); while(tc.compareTo(LocalDateTime.now()) &gt; 0){ try{ Thread.sleep(precision); }catch(InterruptedException e){ } } }; } long precision に、できるだけ小さい値（mse…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2022%2F08%2F28%2F132258&quot; title=&quot;Thread.sleep は精度低いから使わないのだけど、、 - Oboe吹きプログラマの黙示録&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>2022-08-28 13:22:58</published>
  <title>Thread.sleep は精度低いから使わないのだけど、、</title>
  <type>rich</type>
  <url>https://oboe2uran.hatenablog.com/entry/2022/08/28/132258</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
