Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
Loading...
Searching...
No Matches
foray_hostbenchmark.hpp
Go to the documentation of this file.
1#pragma once
3
4namespace foray::bench {
5
8 {
9 public:
11 void Begin();
13 void LogTimestamp(const char* id);
15 void End();
16 };
17} // namespace foray
Base class for all benchmark types.
Definition foray_benchmarkbase.hpp:44
A host (CPU time) benchmark based on std::chrono::high_resolution_clock. Timestamps are recorded in m...
Definition foray_hostbenchmark.hpp:8
void End()
Records the "End" timestamp and finalizes the benchmark.
void LogTimestamp(const char *id)
Logs timestamp of id.
void Begin()
Begins a new benchmark and records the "Begin" timestamp.
Definition foray_bench_declares.hpp:3