Stopwatch More...
Public Member Functions | |
StopWatch () | |
Constructor (activate and generate) More... | |
StopWatch (bool enable) | |
constructor More... | |
void | Start () |
Start measurement More... | |
long | Stop () |
end the measurement More... | |
double | Reset () |
Stop measurement and initialize the elapsed time More... | |
double | ReStart () |
Stop measurement, initialize the elapsed time, and then start measurement again. More... | |
double | Tick2Second (double tick) |
convert ticks to seconds More... | |
double | Tick2MilliSecond (double tick) |
Convert ticks to milliseconds More... | |
double | Tick2NanoSecond (double tick) |
Convert ticks to nanoseconds More... | |
Properties | |
bool | Enable [get, set] |
enable use More... | |
long | Frequency [get] |
number of ticks per second More... | |
double | ElapsedSecond [get] |
Elapsed time (seconds) More... | |
long | ElapsedMilliSecond [get] |
Elapsed time (ms) More... | |
double | ElapsedNanoSecond [get] |
Elapsed time (nanoseconds) More... | |
long | ElapsedTick [get] |
Elapsed time (minimum unit of resolution) More... | |
Stopwatch
Yukar.Engine.StopWatch.StopWatch | ( | ) |
Constructor (activate and generate)
Yukar.Engine.StopWatch.StopWatch | ( | bool | enable | ) |
constructor
enable | to enable |
double Yukar.Engine.StopWatch.Reset | ( | ) |
Stop measurement and initialize the elapsed time
double Yukar.Engine.StopWatch.ReStart | ( | ) |
Stop measurement, initialize the elapsed time, and then start measurement again.
void Yukar.Engine.StopWatch.Start | ( | ) |
Start measurement
long Yukar.Engine.StopWatch.Stop | ( | ) |
end the measurement
double Yukar.Engine.StopWatch.Tick2MilliSecond | ( | double | tick | ) |
Convert ticks to milliseconds
tick | tick |
double Yukar.Engine.StopWatch.Tick2NanoSecond | ( | double | tick | ) |
Convert ticks to nanoseconds
tick | tick |
double Yukar.Engine.StopWatch.Tick2Second | ( | double | tick | ) |
convert ticks to seconds
tick | tick |
|
get |
Elapsed time (ms)
|
get |
Elapsed time (nanoseconds)
|
get |
Elapsed time (seconds)
|
get |
Elapsed time (minimum unit of resolution)
|
getset |
enable use
|
get |
number of ticks per second