我需要一些帮助,在分析执行时间方面现有的代码。这样做的目的是为了加快速度。
我已经得到了一些以前工作过的代码。它完全是用C++编写的,带有面向对象的概念。它有一个基于GUI的界面,选择某个选项就可以运行选定的代码。(作为项目的一部分,大约有11个类)。
我希望能够按下GUI选项,让代码运行并生成资源映射,如下所示:
Functions of Class 1 = 20% of execution time
Functions of Class 2 = 60% of execution time
Functions of Class 3 = 10% of execution time
Functi
我有以下代码框架
try {
...
...
sysout("Please provide an input: ");
Thread.sleep(10000); //10 secs time given to the user to give the input. If the user doesn't enter the input it is throwing the exception, which is not being handled (with the custom message)
interact(); //This is a