mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Corresponding code changes
This commit is contained in:
parent
781c7a800f
commit
ae4cd1ebf1
14 changed files with 60 additions and 55 deletions
|
@ -8952,7 +8952,7 @@ class Duration {
|
|||
Unit m_units;
|
||||
|
||||
public:
|
||||
explicit Duration(double inNanoseconds, Unit units = Unit::Auto)
|
||||
explicit Duration(double inNanoseconds, Unit units = Unit::Microseconds)
|
||||
: m_inNanoseconds(inNanoseconds),
|
||||
m_units(units) {
|
||||
if (m_units == Unit::Auto) {
|
||||
|
@ -9002,7 +9002,7 @@ public:
|
|||
|
||||
}
|
||||
friend auto operator << (std::ostream& os, Duration const& duration) -> std::ostream& {
|
||||
return os << duration.value() << ' ' << duration.unitsAsString();
|
||||
return os << std::fixed << duration.value() << ' ' << duration.unitsAsString();
|
||||
}
|
||||
};
|
||||
} // end anon namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue