mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 02:21:13 +00:00
4e12cd56ea
Review URL: https://codereview.chromium.org//12210065 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18242 260f80e4-7a28-3924-810f-c04153c831b5
14 lines
505 B
Dart
14 lines
505 B
Dart
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// A VM patch of the stopwatch part of dart:core.
|
|
|
|
patch class Stopwatch {
|
|
// Returns the current clock tick.
|
|
/* patch */ static int _now() native "Stopwatch_now";
|
|
|
|
// Returns the frequency of clock ticks in Hz.
|
|
/* patch */ static int _frequency() native "Stopwatch_frequency";
|
|
}
|