Changeset 1806:1530c115580f in lemon-0.x for lemon/time_measure.h
- Timestamp:
- 11/16/05 14:21:57 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2349
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/time_measure.h
r1780 r1806 220 220 /// 221 221 ///The \ref Timer can also be \ref stop() "stopped" and 222 ///\ref start() "started" again, so it is easyto compute collected222 ///\ref start() "started" again, so it is possible to compute collected 223 223 ///running times. 224 224 /// … … 372 372 373 373 template<class F> 374 TimeStamp runningTimeTest( F &f,double min_time=10,int *num = NULL,374 TimeStamp runningTimeTest(const F &f,double min_time=10,int *num = NULL, 375 375 TimeStamp *full_time=NULL) 376 376 { … … 379 379 int total=0; 380 380 for(int tn=1;tn < 1<<24; tn*=2) { 381 for(;total<tn;total++) f();381 for(;total<tn;total++) const_cast<F &>(f)(); 382 382 full=t; 383 383 if(full.realTime()>min_time) {
Note: See TracChangeset
for help on using the changeset viewer.