Table of Contents

Class Time

Namespace
Fantas
Assembly
Fantas.dll

Get game time information

public static class Time
Inheritance
Time
Inherited Members

Fields

TimePerFrame

Time per frame (in seconds) 1/60

public const double TimePerFrame = 0.016666666666666666

Field Value

double

Properties

CurrentFramesPerSecond

Current frame rate in the past 1 second

public static int CurrentFramesPerSecond { get; }

Property Value

int

DeltaFactor

FPS * FrameDeltaTime

public static double DeltaFactor { get; }

Property Value

double

DeltaTime

Delta time since last frame update

public static double DeltaTime { get; }

Property Value

double

Elapsed

Current time since start of the game

public static TimeSpan Elapsed { get; }

Property Value

TimeSpan

ElapsedSeconds

Current time in seconds since start of the game

public static double ElapsedSeconds { get; }

Property Value

double