Skip to main content

Timeline for Measuring execution time in C++

Current License: CC BY-SA 3.0

12 events
when toggle format what by license comment
Jun 10, 2020 at 13:24 history edited CommunityBot
Commonmark migration
Jun 11, 2018 at 23:41 comment added einpoklum Sorry for the late question, but - why return the count rather than the duration? I know OP did that but is that really a good idea?
Apr 30, 2018 at 2:01 comment added Loki Astari @einpoklum I have no idea what you are talking about. Write an answer and get votes on it.
Apr 29, 2018 at 18:05 comment added einpoklum Isn't this kind of overkill, seeing how we could just wrap the function call in a lambda and time that?
Aug 28, 2015 at 12:00 comment added Nikos Athanasiou I updated the SO post with an improvement : We can use a universal reference for the func provided that we forward the function call
May 3, 2014 at 23:20 comment added Loki Astari @NikosAthanasiou: Its because you have two functions named func(). It does not know which one you mean when you go measure<>::execution(func); (it could be either). You can either name the functions differently or you can be specific when specifying them by providing the functions type measure<>::execution<void()>(func);.
May 3, 2014 at 19:52 comment added Nikos Athanasiou Quick question. Why can't it compile the original example ? I'm supposing due to the overloads func, but can I have any thoughts on that?
May 3, 2014 at 19:37 vote accept Nikos Athanasiou
May 3, 2014 at 19:36 comment added Loki Astari @NikosAthanasiou: This person seems to know what he is talking about. codereview.stackexchange.com/users/39083/iavr read some of his answers
May 3, 2014 at 19:34 comment added Nikos Athanasiou +1 . Those variadic templates solve so many problems! Would you recommend a source where I can learn more ? (please don't say the Standard)
May 3, 2014 at 19:29 history edited Loki Astari CC BY-SA 3.0
added 8 characters in body
May 3, 2014 at 19:24 history answered Loki Astari CC BY-SA 3.0