1
0
Fork 0

just in case someone changes the epoch

This commit is contained in:
Frank Celler 2016-07-31 18:56:14 +02:00 committed by Wilfried Goesgens
parent da85dc2adc
commit 4d81c4c733
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ DstDurationT clockOffset(
std::chrono::duration_cast<SrcDurationT>(std::chrono::nanoseconds{300}),
const int limit = 10000) {
if (std::is_same<SrcClockT, DstClockT>::value) {
return DstDurationT{};
return SrcClockT::from_time_t(0).time_since_epoch();
}
auto itercnt = 0;