The default duration constructor does not zero-initialize the object, we need to
do that manually.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286359
91177308-0d34-0410-b5e6-
96231b3b80d8
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
}