参考链接:
https://blog.csdn.net/rustfree/article/details/84558058
https://blog.csdn.net/u013618190/article/details/88085152#commentBox
概念:
(1)模拟器对象(Simulator),该对象可以访问事件队列,并可以管理事件的执行。
(2)调度器(Scheduler),负责插入和删除队列中的事件。
(3)Time: 一种表示模拟时间的方式。
(4)事件本身,通常是某个函数。