e-tipsmemo

ごった煮

Rust 実行時間測定②

e-tipsmemo.hatenablog.com

このような記事を書いたが、time crateのリポジトリをよく見ると、

Notes
This library is no longer actively maintained, but bugfixes will be added (details).
In case you're looking for something a little fresher and more actively maintained have a look at the chrono crate.

とあった。
timeを計算するところでエラーがPCによっては出るようになってしまってメンテもされていないリポジトリなので使用を取りやめる。

なんとなく速くなっていることがわかりさえすればいいと思うので、'std::time'を使う。