Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
timer.h File Reference
#include <cstdint>
#include "absl/log/check.h"
#include "absl/time/clock.h"
#include "absl/time/time.h"
#include "ortools/base/macros.h"

Go to the source code of this file.

Classes

class  WallTimer
 
class  CycleTimer
 
class  CycleTimerBase
 Conversion routines between CycleTimer::GetCycles and actual times. More...
 
class  ScopedWallTime
 

Typedefs

typedef WallTimer UserTimer
 
typedef CycleTimer SimpleCycleTimer
 
typedef CycleTimerBase CycleTimerInstance
 
typedef WallTimer ClockTimer
 

Typedef Documentation

◆ ClockTimer

A WallTimer clone meant to support SetClock(), for unit testing. But for now we just use WallTimer directly.

Definition at line 97 of file timer.h.

◆ CycleTimerInstance

Definition at line 93 of file timer.h.

◆ SimpleCycleTimer

Definition at line 81 of file timer.h.

◆ UserTimer

This is meant to measure the actual CPU usage time.

Todo
(user): implement it properly.

Definition at line 67 of file timer.h.