nngn
Loading...
Searching...
No Matches
adhoc.h
Go to the documentation of this file.
1#ifndef NNGN_TIMING_ADHOC_H
2#define NNGN_TIMING_ADHOC_H
3
4#include <string_view>
5#include <utility>
6#include <vector>
7
8#include "timing.h"
9
10namespace nngn {
11
12struct AdHocTimer {
13 struct Step { std::string_view name = {}; Timing::duration t = {}; };
14 Timing::time_point last = Timing::clock::now();
15 std::vector<Step> steps = {};
16 void add(std::string_view name);
17 void end();
18 void log();
19};
20
21}
22
23#endif
name
Definition: cathedral.lua:11
Definition: audio.cpp:7
Timing::duration t
Definition: adhoc.h:13
std::string_view name
Definition: adhoc.h:13
void add(std::string_view name)
std::vector< Step > steps
Definition: adhoc.h:15
Timing::time_point last
Definition: adhoc.h:14
clock::time_point time_point
Definition: timing.h:22
clock::duration duration
Definition: timing.h:23