Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
WallTimer Class Reference

Detailed Description

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition at line 22 of file timer.h.

#include <timer.h>

Inheritance diagram for WallTimer:
CycleTimer

Public Member Functions

 WallTimer ()
void Reset ()
void Start ()
 When Start() is called multiple times, only the most recent is used.
void Restart ()
void Stop ()
double Get () const
int64_t GetInMs () const
int64_t GetInUsec () const
absl::Duration GetDuration () const
bool IsRunning () const

Protected Member Functions

int64_t GetNanos () const

Constructor & Destructor Documentation

◆ WallTimer()

WallTimer::WallTimer ( )
inline

Definition at line 24 of file timer.h.

Member Function Documentation

◆ Get()

double WallTimer::Get ( ) const
inline

Definition at line 44 of file timer.h.

◆ GetDuration()

absl::Duration WallTimer::GetDuration ( ) const
inline

Definition at line 47 of file timer.h.

◆ GetInMs()

int64_t WallTimer::GetInMs ( ) const
inline

Definition at line 45 of file timer.h.

◆ GetInUsec()

int64_t WallTimer::GetInUsec ( ) const
inline

Definition at line 46 of file timer.h.

◆ GetNanos()

int64_t WallTimer::GetNanos ( ) const
inlineprotected

Definition at line 53 of file timer.h.

◆ IsRunning()

bool WallTimer::IsRunning ( ) const
inline

Definition at line 50 of file timer.h.

◆ Reset()

void WallTimer::Reset ( )
inline

Definition at line 25 of file timer.h.

◆ Restart()

void WallTimer::Restart ( )
inline

Definition at line 34 of file timer.h.

◆ Start()

void WallTimer::Start ( )
inline

When Start() is called multiple times, only the most recent is used.

Definition at line 30 of file timer.h.

◆ Stop()

void WallTimer::Stop ( )
inline

Definition at line 38 of file timer.h.


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