745f112ef6
Opt an initial batch of files under samples, samples-dev, utils, and runtime/tools/dartfuzz out of null safety in preparation for switching the flag on by default. Change-Id: Icdfd52a5a969e678a7205903332f73fe3841c223 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/166960 Reviewed-by: Daco Harkes <dacoharkes@google.com> Commit-Queue: Leaf Petersen <leafp@google.com>
19 lines
500 B
Dart
19 lines
500 B
Dart
// Copyright (c) 2011, 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.
|
|
|
|
// @dart = 2.9
|
|
|
|
part of touch;
|
|
|
|
/**
|
|
* Convenience methods for dealing with time.
|
|
* In the future this could also provide an entry point to mock out time
|
|
* calculation for tests.
|
|
*/
|
|
class TimeUtil {
|
|
static int now() {
|
|
return new DateTime.now().millisecondsSinceEpoch;
|
|
}
|
|
}
|