Метод |
Описание |
|
CreateXmlSumTimeSectionReport ( string fileName ) : void |
|
|
GetPersistentTimedSections ( ) : string |
|
|
GetSumTimedSections ( ) : string |
|
|
GetTimedSectionList ( ) : List |
|
|
GetTimedSections ( bool showTotal ) : string |
|
|
Initialize ( ) : void |
Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content. |
|
InitializeStopwatch ( ) : void |
|
|
PersistentTimeSection ( string label ) : void |
|
|
SecondsSince ( double absoluteTime ) : double |
|
|
StartPersistentTiming ( ) : void |
|
|
StartSumTiming ( ) : void |
Begins Sum Timing StartSumTiming(); foreach(Sprite sprite in someSpriteArray) { SumTimeRefresh(); PerformSomeFunction(sprite); SumTimeSection("PerformSomeFunction time:"); SumTimeRefresh(); PerformSomeOtherFunction(sprite); SumTimeSection("PerformSomeOtherFunction time:); }
|
|
SumTimeRefresh ( ) : void |
|
|
SumTimeSection ( string label ) : void |
|
|
TimeSection ( ) : void |
Stores an unnamed timed section. A timed section is the amount of time (in seconds) since the last time either Update or TimeSection has been called. The sections are reset every time Update is called. The sections can be retrieved through the GetTimedSections method. FRB.TimeManager.GetTimedSection |
|
TimeSection ( string label ) : void |
Stores an named timed section. A timed section is the amount of time (in seconds) since the last time either Update or TimeSection has been called. The sections are reset every time Update is called. The sections can be retrieved through the GetTimedSections method. FRB.TimeManager.GetTimedSection |
|
Update ( GameTime time ) : void |
Performs every-frame logic to update timing values such as CurrentTime and SecondDifference. If this method is not called, CurrentTime will not advance. |
|