{"categories":["Java"],"blog_title":"Oboe\u5439\u304d\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u9ed9\u793a\u9332","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2022%2F08%2F28%2F132258\" title=\"Thread.sleep \u306f\u7cbe\u5ea6\u4f4e\u3044\u304b\u3089\u4f7f\u308f\u306a\u3044\u306e\u3060\u3051\u3069\u3001\u3001 - Oboe\u5439\u304d\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u9ed9\u793a\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2022-08-28 13:22:58","width":"100%","image_url":null,"description":"\u305d\u308c\u3067\u3082\u3001\u3053\u308c\u3057\u304b\u306a\u3044\u3068\u3044\u3046\u6642\u306e\u70ba\u306b\u3001\u3001\u3001 public static Consumer<Integer> sleepSecApprox(long precision){ return t->{ LocalDateTime tc = LocalDateTime.now().plusSeconds(t); while(tc.compareTo(LocalDateTime.now()) > 0){ try{ Thread.sleep(precision); }catch(InterruptedException e){ } } }; } long precision \u306b\u3001\u3067\u304d\u308b\u3060\u3051\u5c0f\u3055\u3044\u5024\uff08mse\u2026","title":"Thread.sleep \u306f\u7cbe\u5ea6\u4f4e\u3044\u304b\u3089\u4f7f\u308f\u306a\u3044\u306e\u3060\u3051\u3069\u3001\u3001","provider_name":"Hatena Blog","author_name":"posturan","url":"https://oboe2uran.hatenablog.com/entry/2022/08/28/132258","version":"1.0","blog_url":"https://oboe2uran.hatenablog.com/","height":"190","type":"rich","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/posturan/"}