lemon/time_measure.h
changeset 1935 67b38d699ea7
parent 1875 98698b69a902
child 1953 d4f411003580
equal deleted inserted replaced
10:836b307388e4 11:af82c3b06943
   498   ///running time. The number of the executions will be choosen in such a way
   498   ///running time. The number of the executions will be choosen in such a way
   499   ///that the full real running time will be roughly between \c min_time
   499   ///that the full real running time will be roughly between \c min_time
   500   ///and <tt>2*min_time</tt>.
   500   ///and <tt>2*min_time</tt>.
   501   ///\param f the function object to be measured.
   501   ///\param f the function object to be measured.
   502   ///\param min_time the minimum total running time.
   502   ///\param min_time the minimum total running time.
   503   ///\retval num if it is not \c NULL, then *num will contain the actual
   503   ///\retval num if it is not \c NULL, then the actual
   504   ///        number of execution of \c f.
   504   ///        number of execution of \c f will be written into <tt>*num</tt>.
   505   ///\retval full_time if it is not \c NULL, then *full_time
   505   ///\retval full_time if it is not \c NULL, then the actual
   506   ///        will contain the actual
   506   ///        total running time will be written into <tt>*full_time</tt>.
   507   ///        total running time.
       
   508   ///\return The average running time of \c f.
   507   ///\return The average running time of \c f.
   509   
   508   
   510   template<class F>
   509   template<class F>
   511   TimeStamp runningTimeTest(F f,double min_time=10,int *num = NULL,
   510   TimeStamp runningTimeTest(F f,double min_time=10,int *num = NULL,
   512 			TimeStamp *full_time=NULL)
   511 			TimeStamp *full_time=NULL)