Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在模拟我的状态流程序时获得模拟时间,我不知道哪个命令可以给我运行每个步骤的时间。
你能帮助我吗。
谢谢你。
您可以使用tic-toc
tic-toc
tic % doing something toc ... tic % doing something toc
一般来说,我会profile
profile
profile on %Your code here profile viewer
输出将显示您的代码在每个函数调用或条件语句等上花费了多少时间。更多信息在这里