blob: 6e04412d196d21c17aee751870ba65d60967d673 [file] [log] [blame]
// Copyright 2017 The Fuchsia 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 "lib/fxl/time/stopwatch.h"
#include "gtest/gtest.h"
namespace fxl {
namespace {
TEST(Stopwatch, Control) {
Stopwatch stopwatch;
stopwatch.Start();
EXPECT_GE(stopwatch.Elapsed().ToNanoseconds(), 0);
}
} // namespace
} // namespace fxl