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

Side by Side Diff: runtime/bin/utils.h

Issue 13704003: Reapply "Add a sleep function to dart:io" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added "hide sleep" where needed 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
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 #ifndef BIN_UTILS_H_ 5 #ifndef BIN_UTILS_H_
6 #define BIN_UTILS_H_ 6 #define BIN_UTILS_H_
7 7
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // If GetUnicodeArgv returns a pointer that pointer has to be 75 // If GetUnicodeArgv returns a pointer that pointer has to be
76 // deallocated with a call to FreeUnicodeArgv. 76 // deallocated with a call to FreeUnicodeArgv.
77 static wchar_t** GetUnicodeArgv(int* argc); 77 static wchar_t** GetUnicodeArgv(int* argc);
78 static void FreeUnicodeArgv(wchar_t** argv); 78 static void FreeUnicodeArgv(wchar_t** argv);
79 }; 79 };
80 80
81 class TimerUtils { 81 class TimerUtils {
82 public: 82 public:
83 static int64_t GetCurrentTimeMicros(); 83 static int64_t GetCurrentTimeMicros();
84 static int64_t GetCurrentTimeMilliseconds(); 84 static int64_t GetCurrentTimeMilliseconds();
85 static void Sleep(int64_t millis);
85 }; 86 };
86 87
87 #endif // BIN_UTILS_H_ 88 #endif // BIN_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698