2020-09-02 09:42:51 +02:00
<!-- HTML header for doxygen 1.8.18 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
2021-09-30 01:18:45 +02:00
< meta name = "generator" content = "Doxygen 1.9.2" / >
2020-09-02 09:42:51 +02:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > OR-Tools: timer.cc Source File< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "navtree.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "resize.js" > < / script >
< script type = "text/javascript" src = "navtreedata.js" > < / script >
< script type = "text/javascript" src = "navtree.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< link href = "styleSheet.tmp.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td id = "projectlogo" > < img alt = "Logo" src = "orLogo.png" / > < / td >
< td id = "projectalign" style = "padding-left: 0.5em;" >
< div id = "projectname" > OR-Tools
2021-09-20 15:57:27 +02:00
  < span id = "projectnumber" > 9.1< / span >
2020-09-02 09:42:51 +02:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2021-09-30 01:18:45 +02:00
<!-- Generated by Doxygen 1.9.2 -->
2020-09-02 09:42:51 +02:00
< script type = "text/javascript" >
2021-09-30 01:18:45 +02:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
2020-09-02 09:42:51 +02:00
/* @license-end */
< / script >
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
2021-09-30 01:18:45 +02:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
2020-09-02 09:42:51 +02:00
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2021-09-30 01:18:45 +02:00
/* @license-end */
< / script >
2020-09-02 09:42:51 +02:00
< div id = "main-nav" > < / div >
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
< / div >
< / div >
< script type = "text/javascript" >
2021-09-30 01:18:45 +02:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(document).ready(function(){initNavTree('timer_8cc_source.html',''); initResizable(); });
2020-09-02 09:42:51 +02:00
/* @license-end */
< / script >
< div id = "doc-content" >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div class = "header" >
2021-09-30 01:18:45 +02:00
< div class = "headertitle" > < div class = "title" > timer.cc< / div > < / div >
2020-09-02 09:42:51 +02:00
< / div > <!-- header -->
< div class = "contents" >
2021-09-30 01:18:45 +02:00
< a href = "timer_8cc.html" > Go to the documentation of this file.< / a > < div class = "fragment" > < div class = "line" > < a id = "l00001" name = "l00001" > < / a > < span class = "lineno" > 1< / span > < span class = "comment" > // Copyright 2010-2021 Google LLC< / span > < / div >
< div class = "line" > < a id = "l00002" name = "l00002" > < / a > < span class = "lineno" > 2< / span > < span class = "comment" > // Licensed under the Apache License, Version 2.0 (the " License" );< / span > < / div >
< div class = "line" > < a id = "l00003" name = "l00003" > < / a > < span class = "lineno" > 3< / span > < span class = "comment" > // you may not use this file except in compliance with the License.< / span > < / div >
< div class = "line" > < a id = "l00004" name = "l00004" > < / a > < span class = "lineno" > 4< / span > < span class = "comment" > // You may obtain a copy of the License at< / span > < / div >
< div class = "line" > < a id = "l00005" name = "l00005" > < / a > < span class = "lineno" > 5< / span > < span class = "comment" > //< / span > < / div >
< div class = "line" > < a id = "l00006" name = "l00006" > < / a > < span class = "lineno" > 6< / span > < span class = "comment" > // http://www.apache.org/licenses/LICENSE-2.0< / span > < / div >
< div class = "line" > < a id = "l00007" name = "l00007" > < / a > < span class = "lineno" > 7< / span > < span class = "comment" > //< / span > < / div >
< div class = "line" > < a id = "l00008" name = "l00008" > < / a > < span class = "lineno" > 8< / span > < span class = "comment" > // Unless required by applicable law or agreed to in writing, software< / span > < / div >
< div class = "line" > < a id = "l00009" name = "l00009" > < / a > < span class = "lineno" > 9< / span > < span class = "comment" > // distributed under the License is distributed on an " AS IS" BASIS,< / span > < / div >
< div class = "line" > < a id = "l00010" name = "l00010" > < / a > < span class = "lineno" > 10< / span > < span class = "comment" > // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.< / span > < / div >
< div class = "line" > < a id = "l00011" name = "l00011" > < / a > < span class = "lineno" > 11< / span > < span class = "comment" > // See the License for the specific language governing permissions and< / span > < / div >
< div class = "line" > < a id = "l00012" name = "l00012" > < / a > < span class = "lineno" > 12< / span > < span class = "comment" > // limitations under the License.< / span > < / div >
< div class = "line" > < a id = "l00013" name = "l00013" > < / a > < span class = "lineno" > 13< / span > < / div >
< div class = "line" > < a id = "l00014" name = "l00014" > < / a > < span class = "lineno" > 14< / span > < span class = "preprocessor" > #include " < a class = "code" href = "timer_8h.html" > ortools/base/timer.h< / a > " < / span > < / div >
< div class = "line" > < a id = "l00015" name = "l00015" > < / a > < span class = "lineno" > 15< / span > < / div >
< div class = "line" > < a id = "l00016" name = "l00016" > < / a > < span class = "lineno" > < a class = "line" href = "class_scoped_wall_time.html#aa994b3d111ae36076335e94ef03d8c4b" > 16< / a > < / span > < a class = "code hl_function" href = "class_scoped_wall_time.html#aa994b3d111ae36076335e94ef03d8c4b" > ScopedWallTime::ScopedWallTime< / a > (< span class = "keywordtype" > double< / span > * aggregate_time)< / div >
< div class = "line" > < a id = "l00017" name = "l00017" > < / a > < span class = "lineno" > 17< / span > : aggregate_time_(aggregate_time), timer_() {< / div >
< div class = "line" > < a id = "l00018" name = "l00018" > < / a > < span class = "lineno" > 18< / span > < a class = "code hl_define" href = "base_2logging_8h.html#ae17f8119c108cf3070bad3449c7e0006" > DCHECK< / a > (aggregate_time != NULL);< / div >
< div class = "line" > < a id = "l00019" name = "l00019" > < / a > < span class = "lineno" > 19< / span > timer_.< a class = "code hl_function" href = "class_wall_timer.html#a07aaf1227e4d645f15e0a964f54ef291" > Start< / a > ();< / div >
< div class = "line" > < a id = "l00020" name = "l00020" > < / a > < span class = "lineno" > 20< / span > }< / div >
< div class = "line" > < a id = "l00021" name = "l00021" > < / a > < span class = "lineno" > 21< / span > < / div >
< div class = "line" > < a id = "l00022" name = "l00022" > < / a > < span class = "lineno" > < a class = "line" href = "class_scoped_wall_time.html#a3e15f650d8ef30e58d33374eb41af5fb" > 22< / a > < / span > < a class = "code hl_function" href = "class_scoped_wall_time.html#a3e15f650d8ef30e58d33374eb41af5fb" > ScopedWallTime::~ScopedWallTime< / a > () {< / div >
< div class = "line" > < a id = "l00023" name = "l00023" > < / a > < span class = "lineno" > 23< / span > timer_.< a class = "code hl_function" href = "class_wall_timer.html#a17a237457e57625296e6b24feb19c60a" > Stop< / a > ();< / div >
< div class = "line" > < a id = "l00024" name = "l00024" > < / a > < span class = "lineno" > 24< / span > *aggregate_time_ += timer_.< a class = "code hl_function" href = "class_wall_timer.html#aec56fe080959ecebec3feaed9dafde84" > Get< / a > ();< / div >
< div class = "line" > < a id = "l00025" name = "l00025" > < / a > < span class = "lineno" > 25< / span > }< / div >
< div class = "ttc" id = "abase_2logging_8h_html_ae17f8119c108cf3070bad3449c7e0006" > < div class = "ttname" > < a href = "base_2logging_8h.html#ae17f8119c108cf3070bad3449c7e0006" > DCHECK< / a > < / div > < div class = "ttdeci" > #define DCHECK(condition)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "base_2logging_8h_source.html#l00885" > base/logging.h:885< / a > < / div > < / div >
< div class = "ttc" id = "aclass_scoped_wall_time_html_a3e15f650d8ef30e58d33374eb41af5fb" > < div class = "ttname" > < a href = "class_scoped_wall_time.html#a3e15f650d8ef30e58d33374eb41af5fb" > ScopedWallTime::~ScopedWallTime< / a > < / div > < div class = "ttdeci" > ~ScopedWallTime()< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "timer_8cc_source.html#l00022" > timer.cc:22< / a > < / div > < / div >
< div class = "ttc" id = "aclass_scoped_wall_time_html_aa994b3d111ae36076335e94ef03d8c4b" > < div class = "ttname" > < a href = "class_scoped_wall_time.html#aa994b3d111ae36076335e94ef03d8c4b" > ScopedWallTime::ScopedWallTime< / a > < / div > < div class = "ttdeci" > ScopedWallTime(double *aggregate_time)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "timer_8cc_source.html#l00016" > timer.cc:16< / a > < / div > < / div >
< div class = "ttc" id = "aclass_wall_timer_html_a07aaf1227e4d645f15e0a964f54ef291" > < div class = "ttname" > < a href = "class_wall_timer.html#a07aaf1227e4d645f15e0a964f54ef291" > WallTimer::Start< / a > < / div > < div class = "ttdeci" > void Start()< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "timer_8h_source.html#l00031" > timer.h:31< / a > < / div > < / div >
< div class = "ttc" id = "aclass_wall_timer_html_a17a237457e57625296e6b24feb19c60a" > < div class = "ttname" > < a href = "class_wall_timer.html#a17a237457e57625296e6b24feb19c60a" > WallTimer::Stop< / a > < / div > < div class = "ttdeci" > void Stop()< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "timer_8h_source.html#l00039" > timer.h:39< / a > < / div > < / div >
< div class = "ttc" id = "aclass_wall_timer_html_aec56fe080959ecebec3feaed9dafde84" > < div class = "ttname" > < a href = "class_wall_timer.html#aec56fe080959ecebec3feaed9dafde84" > WallTimer::Get< / a > < / div > < div class = "ttdeci" > double Get() const< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "timer_8h_source.html#l00045" > timer.h:45< / a > < / div > < / div >
< div class = "ttc" id = "atimer_8h_html" > < div class = "ttname" > < a href = "timer_8h.html" > timer.h< / a > < / div > < / div >
2021-01-26 11:28:50 +01:00
< / div > <!-- fragment --> < / div > <!-- contents -->
< / div > <!-- doc - content -->
2020-09-02 09:42:51 +02:00
<!-- HTML footer for doxygen 1.8.18 -->
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul >
< li class = "navelem" > < a class = "el" href = "dir_a7cc1eeded8f693d0da6c729bc88c45a.html" > ortools< / a > < / li > < li class = "navelem" > < a class = "el" href = "dir_8f9dc966244f4c6e9b2fa0dee1e4ef1a.html" > base< / a > < / li > < li class = "navelem" > < a class = "el" href = "timer_8cc.html" > timer.cc< / a > < / li >
< li class = "footer" > Generated by
< a href = "http://www.doxygen.org/index.html" >
2021-09-30 01:18:45 +02:00
< img class = "footer" src = "doxygen.png" alt = "doxygen" / > < / a > 1.9.2 < / li >
2020-09-02 09:42:51 +02:00
< / ul >
< / div >
< / body >
< / html >