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

Unified Diff: pkg/analysis_server/test/integration/integration_tests.dart

Issue 431713002: Get rid of unnecessary calls to toDouble(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/integration/integration_tests.dart
diff --git a/pkg/analysis_server/test/integration/integration_tests.dart b/pkg/analysis_server/test/integration/integration_tests.dart
index 59c3f321a5f32be02fd6c197d3bb1aebbc83dbca..f2e4b2b7e78caaa93efd9cd6be25348e2692738e 100644
--- a/pkg/analysis_server/test/integration/integration_tests.dart
+++ b/pkg/analysis_server/test/integration/integration_tests.dart
@@ -715,8 +715,7 @@ class Server {
* [debugStdio] has been called.
*/
void _recordStdio(String line) {
- double elapsedTime = _time.elapsedTicks.toDouble() /
- _time.frequency.toDouble();
+ double elapsedTime = _time.elapsedTicks / _time.frequency;
line = "$elapsedTime: $line";
if (_debuggingStdio) {
print(line);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698