C# 클래스 LitDev.LDStopwatch

파일 보기 프로젝트 열기: litdev1/LitDev

공개 메소드들

메소드 설명
Add ( ) : Primitive

Create a new stopwatch.

DelayUpTo ( Primitive delay ) : void

Delay up to a maximum interval since the last time this is called. Useful in a game loop to maintain an even play speed.

ElapsedMilliseconds ( Primitive stopwatch ) : Primitive

Gets the total elapsed time measured in milliseconds.

ElapsedTicks ( Primitive stopwatch ) : Primitive

Gets the total elapsed time measured in timer ticks for very short intervals.

Reset ( Primitive stopwatch ) : void

Stops the current stopwatch and resets the elapsed time to 0.

Restart ( Primitive stopwatch ) : void

Stops the current stopwatch, resets the elapsed time to 0 and restarts the stopwatch.

Start ( Primitive stopwatch ) : void

Starts or resumes the current stopwatch.

Stop ( Primitive stopwatch ) : void

Stops the current stopwatch.

비공개 메소드들

메소드 설명
GetNewWatch ( ) : string

메소드 상세

Add() 공개 정적인 메소드

Create a new stopwatch.
public static Add ( ) : Primitive
리턴 Primitive

DelayUpTo() 공개 정적인 메소드

Delay up to a maximum interval since the last time this is called. Useful in a game loop to maintain an even play speed.
public static DelayUpTo ( Primitive delay ) : void
delay Primitive The maximum delay in ms.
리턴 void

ElapsedMilliseconds() 공개 정적인 메소드

Gets the total elapsed time measured in milliseconds.
public static ElapsedMilliseconds ( Primitive stopwatch ) : Primitive
stopwatch Primitive The stopwatch name.
리턴 Primitive

ElapsedTicks() 공개 정적인 메소드

Gets the total elapsed time measured in timer ticks for very short intervals.
public static ElapsedTicks ( Primitive stopwatch ) : Primitive
stopwatch Primitive The stopwatch name.
리턴 Primitive

Reset() 공개 정적인 메소드

Stops the current stopwatch and resets the elapsed time to 0.
public static Reset ( Primitive stopwatch ) : void
stopwatch Primitive The stopwatch name.
리턴 void

Restart() 공개 정적인 메소드

Stops the current stopwatch, resets the elapsed time to 0 and restarts the stopwatch.
public static Restart ( Primitive stopwatch ) : void
stopwatch Primitive The stopwatch name.
리턴 void

Start() 공개 정적인 메소드

Starts or resumes the current stopwatch.
public static Start ( Primitive stopwatch ) : void
stopwatch Primitive The stopwatch name.
리턴 void

Stop() 공개 정적인 메소드

Stops the current stopwatch.
public static Stop ( Primitive stopwatch ) : void
stopwatch Primitive The stopwatch name.
리턴 void