Timeline for How to profile my code using my own class that measure time?
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 12, 2017 at 21:29 | comment | added | solti | that is correct .. I got carried away for sec there | |
| Jan 12, 2017 at 21:29 | vote | accept | solti | ||
| Jan 12, 2017 at 21:24 | comment | added | Robert Harvey | If class R containing functions B and C needs to be timed independently, then put a timer into class R. Wouldn't it be easier to just run a profiler on this code? | |
| Jan 12, 2017 at 21:13 | comment | added | solti |
I am still having difficulty understanding one this. When I do 1) starting timer 2) execute three objects 3) stop timer. Lets say one of class's function (A) calls other (B,C)class functions. Then from main I execute A's function that class other (B,C)class function. How can I measure the execution time of other (B,C)class function since this measurement from main will only give time of A's function which is combination of time executing B and C's function . eg : A () { B.g(); C.h();}
|
|
| Jan 12, 2017 at 20:48 | history | answered | Robert Harvey | CC BY-SA 3.0 |