Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Macros | Functions | Variables
profiler.h File Reference
#include <chrono>
#include <map>
#include <string>

Go to the source code of this file.

Macros

#define BEGIN_TIMED_BLOCK(NAME)    std::chrono::high_resolution_clock::time_point block_start_##NAME = std::chrono::high_resolution_clock::now();
 
#define END_TIMED_BLOCK(NAME)
 

Functions

void set_time_block (const std::string &str, std::chrono::high_resolution_clock::time_point start, std::chrono::high_resolution_clock::time_point end)
 

Variables

std::map< std::string, int > profiler_information_map
 

Macro Definition Documentation

◆ BEGIN_TIMED_BLOCK

#define BEGIN_TIMED_BLOCK (   NAME)     std::chrono::high_resolution_clock::time_point block_start_##NAME = std::chrono::high_resolution_clock::now();

◆ END_TIMED_BLOCK

#define END_TIMED_BLOCK (   NAME)
Value:
std::chrono::high_resolution_clock::time_point block_end_##NAME = std::chrono::high_resolution_clock::now(); \
set_time_block(#NAME, block_start_##NAME, block_end_##NAME);

Function Documentation

◆ set_time_block()

void set_time_block ( const std::string &  str,
std::chrono::high_resolution_clock::time_point  start,
std::chrono::high_resolution_clock::time_point  end 
)

Variable Documentation

◆ profiler_information_map

std::map<std::string, int> profiler_information_map
extern