I'm trying to use Chrono Library and I would like to prevent startup at construction but chose when it should start.
In Chrono.h It can be found:
/// Constructor. Parameter startNow can be set to false to prevent chronometer from starting up at construction.
Chrono(Resolution resolution = MILLIS, bool startNow=true);
I tried to set chrono in seconds instead of milis and starNow to false:
Chrono mychrono(Chrono::SECONDS); =>compiler is OK
Chrono mychrono(Chrono::SECONDS, false); => compiler NOK
/tmp/422174944/pinned/chrono_1_1_3/Chrono.h:46:7: note: candidate: constexpr Chrono::Chrono(Chrono&&)
/tmp/422174944/pinned/chrono_1_1_3/Chrono.h:46:7: note: candidate expects 1 argument, 2 provided
exit status 1
I tried different declarations but i don't understand Someone can help me ? Thanks