13namespace Autoscheduler {
15using Clock = std::chrono::high_resolution_clock;
18 std::chrono::time_point<Clock>
start = Clock::now();
23 aslog(0) <<
"Start: " <<
msg <<
"\n";
27 auto duration = Clock::now() -
start;
28 auto ms = std::chrono::duration_cast<std::chrono::milliseconds>(duration).count();
29 aslog(0) <<
"Duration (ms): " <<
msg <<
" = " << ms <<
"\n";
34 std::chrono::time_point<Clock>
start = Clock::now();
42 std::chrono::duration<double>
elapsed()
const {
43 return Clock::now() -
start;
std::chrono::high_resolution_clock Clock
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
@ Internal
Not visible externally, similar to 'static' linkage in C.
ScopedTimer(const std::string &msg)
std::chrono::time_point< Clock > start
std::chrono::time_point< Clock > start
std::chrono::duration< double > elapsed() const