Changeset 36:16d3af016400 in rrlib_time
- Timestamp:
- 06.02.2021 21:24:06 (3 years ago)
- Branch:
- 17.03
- Children:
- 37:9f6b5742a6ce, 38:161fef6c0964
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
time.cpp
r34 r36 179 179 return current_time.Load(); 180 180 case tTimeMode::STRETCHED_SYSTEM_TIME: 181 { 181 182 tTimeStretchingParameters params; 182 183 LoadParameters(params); … … 188 189 return application_start + tDuration(ticks); 189 190 } 191 default: 192 break; 193 } 190 194 return tTimestamp(); 191 195 } … … 295 299 } 296 300 return tDuration((app_duration.count() / params.time_scaling_denominator) * params.time_scaling_numerator); 301 default: 302 break; 297 303 } 298 304 return tDuration(); … … 638 644 { 639 645 std::time_t input_time = std::chrono::system_clock::to_time_t(timestamp); 640 tm full_hour_time = {0}; 646 tm full_hour_time; 647 memset(&full_hour_time, 0, sizeof(full_hour_time)); 641 648 gmtime_r(&input_time, &full_hour_time); 642 649 full_hour_time.tm_sec = 0;
Note: See TracChangeset
for help on using the changeset viewer.