Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: tests/skia_test.cpp

Issue 1811613004: Change SkTime::GetMSecs to double; ensure values stored in SkMSec do not overflow. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Rebase. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/Test.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/skia_test.cpp
diff --git a/tests/skia_test.cpp b/tests/skia_test.cpp
index 65fbc3284297a9070737fbacd3994e08ac2502f5..5d21d1ec15fba425e0a2ae39defb7aa4bf6b9d56 100644
--- a/tests/skia_test.cpp
+++ b/tests/skia_test.cpp
@@ -95,9 +95,9 @@ public:
int fTestCount;
} reporter;
- const SkMSec start = SkTime::GetMSecs();
+ const Timer timer;
fTest.proc(&reporter, fGrContextFactory);
- SkMSec elapsed = SkTime::GetMSecs() - start;
+ SkMSec elapsed = timer.elapsedMsInt();
if (reporter.fError) {
fStatus->reportFailure();
}
« no previous file with comments | « tests/Test.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698