32
#ifndef __KX_TIME_CATEGORY_LOGGER_H
33
#define __KX_TIME_CATEGORY_LOGGER_H
32
#ifndef __KX_TIMECATEGORYLOGGER_H__
33
#define __KX_TIMECATEGORYLOGGER_H__
35
35
#if defined(WIN32) && !defined(FREE_WINDOWS)
36
36
#pragma warning (disable:4786) // suppress stl-MSVC debug info warning
76
* @param category The new category.
76
* \param category The new category.
78
78
virtual void AddCategory(TimeCategory tc);
81
81
* Starts logging in current measurement for the given category.
82
* @param tc The category to log to.
83
* @param now The current time.
84
* @param endOtherCategories Whether to stop logging to other categories.
82
* \param tc The category to log to.
83
* \param now The current time.
84
* \param endOtherCategories Whether to stop logging to other categories.
86
86
virtual void StartLog(TimeCategory tc, double now, bool endOtherCategories = true);
89
89
* End logging in current measurement for the given category.
90
* @param tc The category to log to.
91
* @param now The current time.
90
* \param tc The category to log to.
91
* \param now The current time.
93
93
virtual void EndLog(TimeCategory tc, double now);
96
96
* End logging in current measurement for all categories.
97
* @param now The current time.
97
* \param now The current time.
99
99
virtual void EndLog(double now);
102
102
* Logs time in next measurement.
103
* @param now The current time.
103
* \param now The current time.
105
105
virtual void NextMeasurement(double now);
108
108
* Returns average of all but the current measurement time.
109
* @return The average of all but the current measurement.
109
* \return The average of all but the current measurement.
111
111
virtual double GetAverage(TimeCategory tc);