blob: b2ac0592e2622218b80e3e3e0f28424d5de4c37b [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include <chrono>
namespace example {
struct Clock {
std::chrono::nanoseconds start_time;
std::chrono::nanoseconds current_time;
std::chrono::nanoseconds delta_time;
Clock();
void Tick();
float GetTime() const;
float GetDeltaTime() const;
static std::chrono::nanoseconds GetCurrentNanoseconds();
};
} // namespace example