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

Side by Side Diff: runtime/bin/utils_win.cc

Issue 13565005: Revert r20952, r20953, r20954 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/utils_macos.cc ('k') | sdk/lib/_internal/compiler/implementation/lib/io_patch.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/globals.h" 5 #include "platform/globals.h"
6 #if defined(TARGET_OS_WINDOWS) 6 #if defined(TARGET_OS_WINDOWS)
7 7
8 #include <errno.h> // NOLINT 8 #include <errno.h> // NOLINT
9 #include <time.h> // NOLINT 9 #include <time.h> // NOLINT
10 10
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // 100-nanosecond intervals since January 1, 1601. 134 // 100-nanosecond intervals since January 1, 1601.
135 union TimeStamp { 135 union TimeStamp {
136 FILETIME ft_; 136 FILETIME ft_;
137 int64_t t_; 137 int64_t t_;
138 }; 138 };
139 TimeStamp time; 139 TimeStamp time;
140 GetSystemTimeAsFileTime(&time.ft_); 140 GetSystemTimeAsFileTime(&time.ft_);
141 return (time.t_ - kTimeEpoc) / kTimeScaler; 141 return (time.t_ - kTimeEpoc) / kTimeScaler;
142 } 142 }
143 143
144 void TimerUtils::Sleep(int64_t millis) {
145 ::Sleep(millis);
146 }
147
148 #endif // defined(TARGET_OS_WINDOWS) 144 #endif // defined(TARGET_OS_WINDOWS)
OLDNEW
« no previous file with comments | « runtime/bin/utils_macos.cc ('k') | sdk/lib/_internal/compiler/implementation/lib/io_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698