C# Class OpenBve.CPreciseTimer

This class implements a high-precision, multi-platform timer
Mostra file Open project: leezer3/OpenBVE Class Usage Examples

Public Methods

Method Description
GetClockTicks ( ) : int

Gets the current environment tick count

GetElapsedTime ( ) : double

Gets the elapsed time in milliseconds since the last call to GetElapsedTime

Private Methods

Method Description
CPreciseTimer ( ) : System
QueryPerformanceCounter ( long &PerformanceCount ) : bool
QueryPerformanceFrequency ( long &PerformanceFrequency ) : bool

Method Details

GetClockTicks() public static method

Gets the current environment tick count
public static GetClockTicks ( ) : int
return int

GetElapsedTime() public static method

Gets the elapsed time in milliseconds since the last call to GetElapsedTime
public static GetElapsedTime ( ) : double
return double