PSFEstimationwithCPSO
Profiling.hpp
00001 /*
00002  * Profiling.hpp
00003  *
00004  *  Created on: 06/08/2012
00005  *  Author: Peter Frank Perroni (pfperroni@inf.ufpr.br)
00006  */
00007 
00008 #include <omp.h>
00009 #include <iostream>
00010 #include "config.hpp"
00011 
00012 #ifdef _PROFILING_
00013 
00014 #ifndef _PROFILING_HPP_
00015 #define _PROFILING_HPP_
00016 
00024 class Profiling {
00025         static omp_lock_t mutex_prof;
00026         static double profiling_total_time;
00027 
00028 public:
00029         static void startup();
00030 
00031         static void shutdown();
00032 
00033         static void reset();
00034 
00035         static double getTotalProcessingTime();
00036 
00037         static void increaseProcessingTime(float time);
00038 };
00039 
00040 #endif /* _PROFILING_HPP_ */
00041 
00042 #endif /* _PROFILING_ */
 All Classes Functions