Halide 14.0.0
Halide compiler and libraries
Halide::Internal::Autoscheduler::Timer Struct Reference

#include <Timer.h>

Public Member Functions

 Timer ()=default
 
void restart ()
 
std::chrono::duration< double > elapsed () const
 

Public Attributes

std::chrono::time_point< Clockstart = Clock::now()
 

Detailed Description

Definition at line 33 of file Timer.h.

Constructor & Destructor Documentation

◆ Timer()

Halide::Internal::Autoscheduler::Timer::Timer ( )
default

Member Function Documentation

◆ restart()

void Halide::Internal::Autoscheduler::Timer::restart ( )
inline

Definition at line 38 of file Timer.h.

References start.

◆ elapsed()

std::chrono::duration< double > Halide::Internal::Autoscheduler::Timer::elapsed ( ) const
inline

Definition at line 42 of file Timer.h.

References start.

Member Data Documentation

◆ start

std::chrono::time_point<Clock> Halide::Internal::Autoscheduler::Timer::start = Clock::now()

Definition at line 34 of file Timer.h.

Referenced by elapsed(), and restart().


The documentation for this struct was generated from the following file: