std::clock_t can be an unsigned value on some platforms like MacOS and therefore needs a cast when initializing an std::clock_t value with -1.
There is a CI failing in https://github.com/flang-compiler/f18-llvm-project/pull/625/checks?check_run_id=3293634051
Attempted fix in https://github.com/llvm/llvm-project/pull/333 and https://github.com/llvm/llvm-project/pull/334.
Also reported by @AlexisPerry.
You don't need move construction of the result of the cast.