Used primarily to present time-only stamps and to time intervals between two timestamps.
Definition at line 146 of file Time.h.
Initializes with the given set of values.
Input parameters are treated as quantities, but not as a time stamp. Therefore, there's no requirement to fit in a certain range like hours must fit into [0, 24) range. After initialization time span will be normalized.
Definition at line 190 of file Time.h.
191 : ticks_(
192 numericCast<Ticks>(days) *
193 TimeTraits::nanosecondsPerDay() +
194 numericCast<Ticks>(hours) *
195 TimeTraits::nanosecondsPerHour() +
196 numericCast<Ticks>(minutes) *
197 TimeTraits::nanosecondsPerMinute() +
198 numericCast<Ticks>(seconds) *
199 TimeTraits::nanosecondsPerSecond() +
200 nanoseconds)
201 {
202 }
Initializes with the given set of values.
Input parameters are treated as quantities, but not as a time stamp. Therefore, there's no requirement to fit in a certain range like hours must fit into [0, 24) range. After initialization time span will be normalized.
Definition at line 211 of file Time.h.
212 : ticks_(
213 numericCast<Ticks>(hours) *
214 TimeTraits::nanosecondsPerHour() +
215 numericCast<Ticks>(minutes) *
216 TimeTraits::nanosecondsPerMinute() +
217 numericCast<Ticks>(seconds) *
218 TimeTraits::nanosecondsPerSecond() +
219 nanoseconds)
220 {
221 }