Skip to main content

Timeline for Measuring execution time in C++

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
Aug 6, 2014 at 4:58 comment added pqnet I kind of disagree on both: duration removal for the same reason as Loki, class name capitalization because you are free to choose your own code style (actually standard library classes are not capitalized, aren't they?)
May 3, 2014 at 23:27 comment added Loki Astari Disagree on removing the variable duration. The compiler will remove all wasted space so the code will still be optimal (ie no different than your version) with the variable. But it helps in reading the code (and code is for the human to read so make it easy on us humans and leave the variables in to make it easier to read). Also when debugging it makes it easier to check the result when you have it stored in a variable.
May 3, 2014 at 23:25 comment added Loki Astari I agree that it is a good idea to have type names begin with Upper case letters (seems to be a common practice). But should is a bit strong.
May 3, 2014 at 19:47 history edited Jamal CC BY-SA 3.0
added 5 characters in body
May 3, 2014 at 19:43 history answered edmz CC BY-SA 3.0