Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
timer.h File Reference
#include <cstdint>
#include "absl/time/clock.h"
#include "absl/time/time.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 98 of file timer.h.

◆ CycleTimerInstance

Definition at line 94 of file timer.h.

◆ SimpleCycleTimer

Definition at line 79 of file timer.h.

◆ UserTimer

This is meant to measure the actual CPU usage time.

Todo
(user): implement it properly.

Definition at line 65 of file timer.h.