Click or drag to resize
MyGameTimer Class

[This is preliminary documentation and is subject to change.]

Global thread-safe timer. Time for update and time for draw must be copied at the beginning of update and draw.
Inheritance Hierarchy
SystemObject
  VRage.Library.UtilsMyGameTimer

Namespace: VRage.Library.Utils
Assembly: VRage.Library (in VRage.Library.dll) Version: 1.0.0.0
Syntax
C#
public class MyGameTimer

The MyGameTimer type exposes the following members.

Constructors
  NameDescription
Public methodMyGameTimer
Initializes a new instance of the MyGameTimer class
Top
Properties
  NameDescription
Public propertyElapsed
Public propertyElapsedTicks
Public propertyElapsedTimeSpan
This may not be accurate for large values - double accuracy
Top
Fields
  NameDescription
Public fieldStatic memberFrequency
Number of ticks per seconds
Top
See Also