Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
time_limit.h File Reference
#include <algorithm>
#include <atomic>
#include <cstdint>
#include <limits>
#include <memory>
#include <string>
#include <vector>
#include "absl/base/thread_annotations.h"
#include "absl/container/flat_hash_map.h"
#include "absl/flags/declare.h"
#include "absl/flags/flag.h"
#include "absl/log/check.h"
#include "absl/synchronization/mutex.h"
#include "absl/time/clock.h"
#include "absl/time/time.h"
#include "ortools/base/base_export.h"
#include "ortools/base/timer.h"
#include "ortools/base/types.h"
#include "ortools/util/running_stat.h"

Go to the source code of this file.

Classes

class  operations_research::TimeLimit
class  operations_research::SharedTimeLimit
class  operations_research::NestedTimeLimit
class  operations_research::TimeLimitCheckEveryNCalls

Namespaces

namespace  operations_research
 OR-Tools root namespace.

Functions

OR_DLL ABSL_DECLARE_FLAG (bool, time_limit_use_usertime)

Function Documentation

◆ ABSL_DECLARE_FLAG()

OR_DLL ABSL_DECLARE_FLAG ( bool ,
time_limit_use_usertime  )

Enables changing the behavior of the TimeLimit class to use -b usertime instead of walltime. This is mainly useful for benchmarks.