Ensign
Low-rank framework for multi-core CPUs and GPUs
Loading...
Searching...
No Matches
timer.hpp File Reference

Provides elapsed-time measurement and named timers. More...

#include <string>
#include <time.h>
#include <generic/common.hpp>

Go to the source code of this file.

Classes

struct  Ensign::timer
 This timer class measures the elapsed time between two events. More...
 

Namespaces

namespace  Ensign
 Core namespace for Ensign's numerical algorithms and data structures.
 
namespace  Ensign::gt
 Named and aggregated timers for profiling code sections.
 

Functions

bool Ensign::gt::is_master ()
 
void Ensign::gt::reset ()
 
void Ensign::gt::print ()
 
std::string Ensign::gt::sorted_output ()
 
void Ensign::gt::start (std::string name)
 
void Ensign::gt::stop (std::string name)
 
double Ensign::gt::total (std::string name)
 
double Ensign::gt::average (std::string name)
 
double Ensign::gt::deviation (std::string name)
 

Detailed Description

Provides elapsed-time measurement and named timers.

Definition in file timer.hpp.