Re: How to get real time of parallel code
Thanks, will do.
Re: How to get real time of parallel code
https://github.com/nim-lang/Nim/issues
Re: How to get real time of parallel code
OK. Could you provide the url for doing it.
Re: How to get real time of parallel code
I've made an issue request for this on the Nim Cookbook project @jzakiya; open a feature request ticket against the nim github repo?
Re: How to get real time of parallel code
The Unix `time` command [https://en.wikipedia.org/wiki/Time_%28Unix%29](https://en.wikipedia.org/wiki/Time_%28Unix%29) [https://www.lifewire.com/command-return-time-command-4054237](https://www.lifewire.com/command-return-time-command-4054237) returns three (3) variants: `real`, `usr`, `sys`. Nim's `cpuTime()` corresponds to `usr` (total cpu time), whereas `epochTime()` corresponds to `real` (clock time). I would like to recommend that `realTime()` be included in Nim's `time` module to make it shadow that component of the Unix `time` command, which will make it's function and use case much clearer to users. This may only need to create `realTime()` as an alias of `epochTime()`.
Re: How to get real time of parallel code
Yes, that did it. This is a good use case example to distinguish in `time` docs between the use of `cpuTime()` and `epochTime()`. The given example for `cpuTime()` assumes single threaded use and not the effect of multi processor/threads use. [https://nim-lang.org/docs/times.html](https://nim-lang.org/docs/times.html)
Re: How to get real time of parallel code
Try _epochTime()_.