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

Hi-resolution wait timer, internally uses multimedia timer More...

Inheritance diagram for VRage.Library.Utils.MyTimer:

Public Member Functions

delegate void TimerEventHandler (int id, int msg, IntPtr user, int dw1, int dw2)
 
 MyTimer (int intervalMS, Action callback)
 
void Start ()
 
void Stop ()
 
void Dispose ()
 

Static Public Member Functions

static void StartOneShot (int intervalMS, TimerEventHandler handler)
 Starts one shot periodic timer. Handler must be STORED somewhere to prevent GC collection until it's called! More...
 

Detailed Description

Hi-resolution wait timer, internally uses multimedia timer

Definition at line 13 of file MyTimer.cs.

Constructor & Destructor Documentation

VRage.Library.Utils.MyTimer.MyTimer ( int  intervalMS,
Action  callback 
)
inline

Definition at line 24 of file MyTimer.cs.

Member Function Documentation

void VRage.Library.Utils.MyTimer.Dispose ( )
inline

Definition at line 64 of file MyTimer.cs.

void VRage.Library.Utils.MyTimer.Start ( )
inline

Definition at line 46 of file MyTimer.cs.

static void VRage.Library.Utils.MyTimer.StartOneShot ( int  intervalMS,
TimerEventHandler  handler 
)
inlinestatic

Starts one shot periodic timer. Handler must be STORED somewhere to prevent GC collection until it's called!

Definition at line 41 of file MyTimer.cs.

void VRage.Library.Utils.MyTimer.Stop ( )
inline

Definition at line 54 of file MyTimer.cs.

delegate void VRage.Library.Utils.MyTimer.TimerEventHandler ( int  id,
int  msg,
IntPtr  user,
int  dw1,
int  dw2 
)

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