blob: f97a889a4498db9a9cc2b962ccbc24d768085aba [file] [log] [blame]
// Copyright 2016 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 "lib/fxl/time/time_delta.h"
#include "lib/fxl/time/time_point.h"
namespace fxl {
void Stopwatch::Start() { start_time_ = TimePoint::Now(); }
TimeDelta Stopwatch::Elapsed() { return TimePoint::Now() - start_time_; }
} // namespace fxl