You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
350 B

#pragma once
#include <cstdint>
#include <string>
#include <vector>
struct TimingInfo {
std::string name;
double ms;
int count;
};
class FunctionProfiler {
public:
FunctionProfiler(std::string name);
~FunctionProfiler();
static std::vector<TimingInfo> Dump();
private:
std::string _name;
uint64_t _frequency;
uint64_t _start;
};