On Friday, 28 October 2022 at 09:48:14 UTC, ab wrote:
On Thursday, 27 October 2022 at 17:17:01 UTC, ab wrote:
[...]
Thanks to H.S. Teoh and Dennis for the suggestions, they both
work. I like the empty asm block a bit more because it is less
invasive, but it only works with ldc.
@Imperatorn see Dennis code for an example.
std.datetime.benchmark works, but at high optimization level
(-O2, -O3) the loop can be removed and the time brought down to
0hnsec. E.g. try "ldc2 -O3 -run dennis.d".
AB
Yeah I didn't read carefully enough sorry 🌷