Specialization of functor AppendableTraits for type Ticks::Duration.
Definition at line 288 of file appendables.hpp.
#include <appendables.hpp>
Public Method Index: | |
| void | operator() (TAString< TChar, TAllocator > &target, const time::Ticks::Duration duration) |
| void alib::strings::APPENDABLES::AppendableTraits< time::Ticks::Duration, TChar, TAllocator >::operator() | ( | TAString< TChar, TAllocator > & | target, |
| const time::Ticks::Duration | duration ) |
Appends a human-readable string representation of objects of templated inner type Duration of type Ticks.
Depending on the length of the duration, a different human-readable time unit or combination of it is used. The following rules are checked from top to bottom:
'-' is written and the value is negated.All floating point numbers are written with two digits fractional precision.
The unit symbols are read from the resources of module class alib::BASECAMP. The list is given with resource name UNITS.
| target | The AString that Append(const TAppendable&) was invoked on. |
| duration | The duration to append. |