Skip to content

Class TempLat::Benchmark

ClassList > TempLat > Benchmark

A class to benchmark your code.

  • #include <benchmark.h>

Classes

Type Name
class Measurer

Public Functions

Type Name
Benchmark (F && function)
void log (std::string name) const
Creates a unique log file in the current directory with the benchmark results.
void print () const
void run (size_t n=0)

Public Functions Documentation

function Benchmark

template<typename F>
inline TempLat::Benchmark::Benchmark (
    F && function
) 

function log

Creates a unique log file in the current directory with the benchmark results.

inline void TempLat::Benchmark::log (
    std::string name
) const


function print

inline void TempLat::Benchmark::print () const

function run

inline void TempLat::Benchmark::run (
    size_t n=0
) 


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/util/benchmark.h