CoinUtils icon indicating copy to clipboard operation
CoinUtils copied to clipboard

CoinTimer for real time vs cpu time

Open svigerske opened this issue 5 years ago • 1 comments

Issue created by migration from Trac.

Original creator: @mgalati13

Original creation time: 2009-08-28 16:21:08

Version: trunk (SVN)

CC: @mgalati13

Can we get a version of CoinTimer that works for real time and/or cpu time? It could be an option in the constructor as to which version you want to use? That would be helpful for multi-threaded apps.

Thanks, Matt

svigerske avatar Mar 02 '19 16:03 svigerske

Comment by ladanyi created at 2010-04-06 00:29:22

Sure, it could be added when stable/2.7 is created. However, how do you want it? Right now the timer uses cpu for SELF only. The timer could use cpu for SELF + CHILDREN... Or, as you suggest, wallclock. Can you provide a patch that serves you best (but preserves current behavior, i.e., codes using the current timer would not need to be changed to preserve behavior)? Then I'll add it to trunk and then it'll be part of stable/2.7

svigerske avatar Mar 02 '19 16:03 svigerske