monontonic_time/1
使用して、私のシェルだけでseconds
なくsecond
(docsあたりとして)単位を受け付けます。それ以外のerlang:monotonic_time badarg - ドキュメントは間違っていますか?
2> erlang:monotonic_time(seconds).
9
5> erlang:monotonic_time(second).
** exception error: bad argument
in function erlang:monotonic_time/1
called as erlang:monotonic_time(second)
誰もがこの奇妙な問題がありますか? 私はErlangを実行しています。
あなたは19.0にありますか?これらは19.1で追加されました:https://github.com/erlang/otp/commit/412b5aaa5810cbac75ef41d29a36898ff1480129 – Dogbert
@ A.Saridこれは19.1と19.1の両方で 'seconds'(19.1で廃止予定)が動作するのに対し、' second'(新しいもの)19.1でのみ動作しますか?または私はあなたを誤解しましたか? – Dogbert
@Dogbertええ、私は19.0です!ありがとう、彼らは19に追加されたと思った。 – drozzy