A game framework written with osu! in mind.
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2// See the LICENCE file in the repository root for full licence text.
3
4using System;
5using System.Globalization;
6
7namespace osu.Framework.Timing
8{
9 public struct FrameTimeInfo
10 {
11 /// <summary>
12 /// Elapsed time during last frame in milliseconds.
13 /// </summary>
14 public double Elapsed;
15
16 /// <summary>
17 /// Begin time of this frame.
18 /// </summary>
19 public double Current;
20
21 public override readonly string ToString() => Math.Truncate(Current).ToString(CultureInfo.InvariantCulture);
22 }
23}