Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1b77dfd037
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (21 sloc) 0.42 kb
#ifndef PERFTIMER_H
#define PERFTIMER_H
#include <map>
#include <string>
//#include <time.h>
#include <cstdlib>
#include <sys/time.h>
#include <sys/resource.h>
class PerfTimer
{
public:
PerfTimer();
void start(std::string key);
void end(std::string key);
void printTimes();
double getSimpleTime();
private:
std::map<std::string, double> totalTimes;
std::map<std::string, double> intermediateTimes;
};
#endif
Jump to Line
Something went wrong with that request. Please try again.