| Index: base/time/time_fuchsia.cc
|
| diff --git a/base/time/time_fuchsia.cc b/base/time/time_fuchsia.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..32fdb3d563f6d75f5751dcc968ea2ecd28c6b6f1
|
| --- /dev/null
|
| +++ b/base/time/time_fuchsia.cc
|
| @@ -0,0 +1,17 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "base/time/time.h"
|
| +
|
| +#include <magenta/syscalls.h>
|
| +
|
| +namespace base {
|
| +
|
| +// static
|
| +TimeTicks TimeTicks::Now() {
|
| + return TimeTicks(mx_time_get(MX_CLOCK_MONOTONIC) /
|
| + base::Time::kNanosecondsPerMicrosecond);
|
| +}
|
| +
|
| +} // namespace base
|
|
|