Skip to content

Commit

Permalink
fixup! feat(util): convert between mixxx::Duration and std::chrono::d…
Browse files Browse the repository at this point in the history
…uration
  • Loading branch information
Swiftb0y committed Aug 10, 2023
1 parent ff20a1c commit ee1020f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/duration.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class Duration : public DurationBase {

static constexpr Duration fromStdDuration(
std::chrono::duration<std::int64_t, std::nano> duration) {
return Duration(duration.count());
return Duration::fromNanos(duration.count());
}

constexpr std::chrono::duration<std::int64_t, std::nano> toStdDuration() {
Expand Down

0 comments on commit ee1020f

Please sign in to comment.