The default duration constructor does not zero-initialize the object, we need to
do that manually.
llvm-svn: 286359
private:
// Options that matches the setters above.
std::string Path;
- std::chrono::seconds Expiration;
- std::chrono::seconds Interval;
+ std::chrono::seconds Expiration = std::chrono::seconds::zero();
+ std::chrono::seconds Interval = std::chrono::seconds::zero();
unsigned PercentageOfAvailableSpace = 0;
};
return { toDuration(RU.ru_utime), toDuration(RU.ru_stime) };
#else
#warning Cannot get usage times on this platform
- return {};
+ return { std::chrono::microseconds::zero(), std::chrono::microseconds::zero() };
#endif
}