我正在读一些书,我得到了一些计时器实现。然而书中并没有对计时器进行真正的解释,我想知道他为什么要做某些事情。代码://Desc:Usethisclasstoregulatecodeflow(foranupdatefunctionsay)//Instantiatetheclasswiththefrequencyyouwouldlikeyourcode//sectiontoflow(like10timespersecond)andthenonlyallow//theprogramflowtocontinueifReady()returnstrueclassRegulator{private