Click or drag to resize

Time Class

The Time class provides all time information. Time is a staticton (a singleton with an additional static interface).
Inheritance Hierarchy
SystemObject
  Fusee.Engine.CoreTime

Namespace:  Fusee.Engine.Core
Assembly:  Fusee.Engine.Core (in Fusee.Engine.Core.dll) Version: 0.7.0.0 (0.7.0.0)
Syntax
C#
public class Time

The Time type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberDeltaTime
Provides the DeltaTime since the last frame in milliseconds that is effected by the TimeScale (read only).
Public propertyStatic memberFramePerSecond
Provides the peek framerate, updated every frame (read only).
Public propertyStatic memberFrames
Provides the total number of rendered frames (read only).
Public propertyStatic memberFramesPerSecondAverage
Provides the average framerate of the last second (read only).
Public propertyStatic memberInstance
Provides the Singleton Instance of the Time Class.
Public propertyInstTimeScale
The TimeScale modifies the speed of the time.
Public propertyInstTimeSinceStart
Provides the passed time since start of the application effected by TimeScale (read only).
Public propertyStatic memberRealDeltaTimeMs
Provides the DeltaTime since the last frame in milliseconds that is uneffected by the TimeScale (read only).
Public propertyStatic memberRealTimeSinceStart
Provides the passed time since start of the application uneffected by TimeScale (read only).
Public propertyTimeDeltaTime
Provides the DeltaTime since the last frame in milliseconds that is effected by the TimeScale (read only).
Public propertyTimeFramePerSecond
Provides the peek framerate, updated every frame (read only).
Public propertyTimeFrames
Provides the total number of rendered frames (read only).
Public propertyTimeFramesPerSecondAverage
Provides the average framerate of the last second (read only).
Public propertyTimeRealDeltaTimeMs
Provides the DeltaTime since the last frame in milliseconds that is uneffected by the TimeScale (read only).
Public propertyTimeRealTimeSinceStart
Provides the passed time since start of the application uneffected by TimeScale (read only).
Public propertyStatic memberTimeScale
The TimeScale modifies the speed of the time.
Public propertyStatic memberTimeSinceStart
Provides the passed time since start of the application effected by TimeScale (read only).
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
Use the input instanmce in cases where you actually need an object to pass around (although there is no such use case in FUSEE code at all). Use the static access in all other cases to reduce typing Input.Instance over and over again. Use
using static Fusee.Engine.Core.Time
to directly access FramePerSecond, DeltaTime etc. without even typing a namespace or classname.
See Also