typecast time_t and suseconds_t from std::chrono
This fixes build on some architectures like mips progress.cc:125:31: error: non-constant-expression cannot be narrowed from type 'std::chrono::duration::rep' (aka 'long long') to '__time_t' (aka 'long') in initializer list [-Wc++11-narrowing] struct timeval NowTime = { Now_sec.count(), Now_usec.count() };
Signed-off-by: Khem Raj raj.khem@gmail.com
Merge request reports
Activity
Please register or sign in to reply