Skip to content

Commit

Permalink
fix(perf): fix performance api nav start time bug
Browse files Browse the repository at this point in the history
  • Loading branch information
etkmao authored and hippy-actions[bot] committed Aug 3, 2023
1 parent 06ca1cd commit d7b7ec4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ class PerformanceNavigationTiming : public PerformanceEntry {
member = t; \
if (start_time_.ToEpochDelta() == TimeDelta::Zero()) { \
start_time_ = t; \
} else if (t.ToEpochDelta() < start_time_.ToEpochDelta()) { \
start_time_ = t; \
} else if (t - start_time_ > duration_) { \
duration_ = t - start_time_; \
} \
Expand Down

0 comments on commit d7b7ec4

Please sign in to comment.