Skip to content

Commit

Permalink
Fix Timestamp subtraction problem. (#145)
Browse files Browse the repository at this point in the history
The subtraction could not be done because `TimestampClock` and the
`DurationClock` were using different precision.
  • Loading branch information
miladHakimi committed Nov 29, 2022
1 parent a94e255 commit 57b13ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layer/support/layer_utils.h
Expand Up @@ -154,7 +154,7 @@ class Timestamp {
}

Timestamp operator-(const Duration& duration) {
return timestamp_ - DurationClock::duration(duration.ToNanoseconds());
return timestamp_ - TimestampClock::duration(duration.ToNanoseconds());
}

private:
Expand Down

0 comments on commit 57b13ce

Please sign in to comment.