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.
我需要使用 LTE 模拟器的多个系统配置(单核、多核、同一服务器上的多节点、多服务器)对延迟进行建模。有谁知道如何计算源代码(或整个代码的一部分,如果我愿意)的计算量?我认为可能的方法是:
3rd 是 2nd 的更通用版本。
模拟器在 Matlab 中,我可以自由使用 c(通过 Mex 文件)。
Matlab has a very easy way to do this build in. use the following code in a script file:
tic; operations...; toc;
This automatically prints out the time elapsed for the set of commands used. Hope this helps