* Calculate accessible checks and show them in the check tracker. * Added added DoorUnlocked checks to the Fire Temple doors. This is needed when calculating Accessible checks while playing and using small keys. Otherwise checks will appear unaccessible because Keys have been used. * Changed RecalculateAccessibleChecks to use the logic ReachabilitySearch. * Reverted DoorUnlocked changes. * Added recalculate_accessible_checks debug console command. * Skip CanBuy check when calculating accessible checks, it spoils that some items can't be bought with the current wallet. * Set RAND_INF_ZELDAS_LETTER. * Don't add locations to the pool when calculating accessible checks. * Save and Load randomizer trick options. * Get the number of used small keys. * Added check if bean was planted. * Show number of Accessible checks in each Area. * Accounted for missing RG_POCKET_CUCCO in logic HasItem and ApplyItemEffect. * Show accessible checks via an icon. * Check shop price against current wallet. * Recalculate Accessible Checks in CheckTrackerLoadGame instead of LoadFile. * RecalculateAccessibleChecks on save. * Don't unset Zelda's Letter. * Added Only Show Available Checks checkbox. * Rename Accessible Checks to Available Checks. * Added option to Enable Available Checks. * Remove debug console to recalculate available checks, this can now be done by toggling Enable Available Checks in the settings. * Remove extra requiredTrial. * Default "Hide unshuffled shop item checks" unchecked. * Updated GetSmallKeyCount to return int8_t. * Default AmmoDrop to true until the setting is implemented. * Fixed Sleeping Waterfall timesaver. * Updated Only Show Available Checks to let Show Hidden Items reveal hidden available checks. * Revert "Don't unset Zelda's Letter." This reverts commit 4b5903940f18a20b69620f3741760fd19ac3876f. * Set RAND_INF_ZELDAS_LETTER. * Revert "Fixed Sleeping Waterfall timesaver." This reverts commit 9b62fd5297cf5bf778ba26bd593c4728c9038be8. * Added isMagicAcquired to Logic::HasItem. * GetDungeonSmallKeyDoors return static emptyVector. * Comment out AmmoCanDrop in ResetLogic. * Added location_access CanBuy todo. * Reverted Get and Set SmallKeyCount to use uint8_t and handled -1 keys. * Added todo for MQ Water GetUsedSmallKeyCount.
21 lines
520 B
C++
21 lines
520 B
C++
#include "performanceTimer.h"
|
|
|
|
void StartPerformanceTimer(TimerID timer){
|
|
timeStarted[timer] = std::chrono::high_resolution_clock::now();
|
|
}
|
|
|
|
void StopPerformanceTimer(TimerID timer){
|
|
totalTimes[timer] += (std::chrono::high_resolution_clock::now() - timeStarted[timer]);
|
|
}
|
|
|
|
std::chrono::duration<double, std::milli> GetPerformanceTimer(TimerID timer){
|
|
return totalTimes[timer];
|
|
}
|
|
|
|
void ResetPerformanceTimer(TimerID timer) {
|
|
totalTimes[timer] = {};
|
|
}
|
|
|
|
void ResetPerformanceTimers(){
|
|
totalTimes = {};
|
|
} |