{"width":"100%","categories":["scala"],"author_url":"https://blog.hatena.ne.jp/xuwei/","provider_name":"Hatena Blog","description":"object Timer{ def apply[A](func: => A):A = { val before = System.currentTimeMillis val result = func println( System.currentTimeMillis - before ) result } } \u3053\u3093\u306a\u611f\u3058\u3067\u4f7f\u3044\u307e\u3059\u2193","title":"\u51e6\u7406\u6642\u9593\u8a08\u308b\u5236\u5fa1\u69cb\u9020\u3063\u307d\u3044\u3084\u3064","blog_url":"https://xuwei-k.hatenablog.com/","blog_title":"xuwei-k's blog","height":"190","provider_url":"https://hatena.blog","published":"2011-02-07 17:16:41","url":"https://xuwei-k.hatenablog.com/entry/20110207/1297066601","author_name":"xuwei","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxuwei-k.hatenablog.com%2Fentry%2F20110207%2F1297066601\" title=\"\u51e6\u7406\u6642\u9593\u8a08\u308b\u5236\u5fa1\u69cb\u9020\u3063\u307d\u3044\u3084\u3064 - xuwei-k&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"type":"rich","version":"1.0"}