17 #ifndef PERFMONITOR_H_ 18 #define PERFMONITOR_H_ 23 #include "JNIHelper.h" 27 const int32_t kNumSamples = 100;
40 double ticklist_[kNumSamples];
42 double UpdateTick(
double current_tick);
46 virtual ~PerfMonitor();
48 bool Update(
float &fFPS);
50 static double GetCurrentTime() {
52 gettimeofday(&time, NULL);
53 double ret = time.tv_sec + time.tv_usec * 1.0 / 1000000.0;
Definition: gestureDetector.h:32