Can I get the time "Duration" in "nsecs" acurracy?
jfondren
julian.fondren at gmail.com
Fri Jul 9 21:29:50 UTC 2021
On Friday, 9 July 2021 at 21:13:02 UTC, rempas wrote:
> ```
> Duration dur = end - start;
> dur = dur.total!"nsecs";
> ```
What are you trying to do, assigning a nanosecond value to a
Duration? The Duration already has that many nanoseconds in it.
> and I get the following error message:
>
> "Error: cannot implicitly convert expression \`dur.total()\` of
> type \`long\` to \`Duration`"
More information about the Digitalmars-d-learn
mailing list