Space Engineers
Public Member Functions | Static Public Attributes | Properties | List of all members
VRage.Library.Utils.MyGameTimer Class Reference

Global thread-safe timer. Time for update and time for draw must be copied at the beginning of update and draw. More...

Public Member Functions

void AddElapsed (MyTimeSpan timespan)
 
 MyGameTimer ()
 

Static Public Attributes

static readonly long Frequency = Stopwatch.Frequency
 Number of ticks per seconds More...
 

Properties

double Multiplier [get, set]
 
TimeSpan ElapsedTimeSpan [get]
 This may not be accurate for large values - double accuracy More...
 
long ElapsedTicks [get]
 
MyTimeSpan Elapsed [get]
 

Detailed Description

Global thread-safe timer. Time for update and time for draw must be copied at the beginning of update and draw.

Definition at line 13 of file MyGameTimer.cs.

Constructor & Destructor Documentation

VRage.Library.Utils.MyGameTimer.MyGameTimer ( )
inline

Definition at line 61 of file MyGameTimer.cs.

Member Function Documentation

void VRage.Library.Utils.MyGameTimer.AddElapsed ( MyTimeSpan  timespan)
inline

Definition at line 57 of file MyGameTimer.cs.

Member Data Documentation

readonly long VRage.Library.Utils.MyGameTimer.Frequency = Stopwatch.Frequency
static

Number of ticks per seconds

Definition at line 22 of file MyGameTimer.cs.

Property Documentation

MyTimeSpan VRage.Library.Utils.MyGameTimer.Elapsed
get

Definition at line 50 of file MyGameTimer.cs.

long VRage.Library.Utils.MyGameTimer.ElapsedTicks
get

Definition at line 42 of file MyGameTimer.cs.

TimeSpan VRage.Library.Utils.MyGameTimer.ElapsedTimeSpan
get

This may not be accurate for large values - double accuracy

Definition at line 34 of file MyGameTimer.cs.

double VRage.Library.Utils.MyGameTimer.Multiplier
getset

Definition at line 25 of file MyGameTimer.cs.


The documentation for this class was generated from the following file: