Show
Ignore:
Timestamp:
08/16/09 18:14:04 (15 years ago)
Author:
smidl
Message:

Documentation regenerated

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/doc/html/timer.html

    r472 r538  
    55<link href="doxygen.css" rel="stylesheet" type="text/css"> 
    66</head><body> 
    7 <!-- Generated by Doxygen 1.5.9 --> 
     7<!-- Generated by Doxygen 1.5.8 --> 
    88<script type="text/javascript"> 
    99<!-- 
     
    6969<span class="keyword">using</span> std::endl; 
    7070 
    71 <span class="keywordtype">int</span> main() 
    72 { 
    73   <span class="comment">//Declare the scalars used:</span> 
    74   <span class="keywordtype">long</span> i, sum, N; 
     71<span class="keywordtype">int</span> main() { 
     72        <span class="comment">//Declare the scalars used:</span> 
     73        <span class="keywordtype">long</span> i, sum, N; 
    7574 
    76   <span class="comment">//Declare tt as an instance of the timer class:</span> 
    77   Real_Timer tt; 
     75        <span class="comment">//Declare tt as an instance of the timer class:</span> 
     76        Real_Timer tt; 
    7877 
    79   <span class="comment">//Initiate the variables:</span> 
    80   N = 1000000; 
    81   sum = 0; 
     78        <span class="comment">//Initiate the variables:</span> 
     79        N = 1000000; 
     80        sum = 0; 
    8281 
    83   <span class="comment">//Start and reset the timer:</span> 
    84   tt.tic(); 
     82        <span class="comment">//Start and reset the timer:</span> 
     83        tt.tic(); 
    8584 
    86   <span class="comment">//Do some processing</span> 
    87   <span class="keywordflow">for</span> (i = 0; i &lt; N; i++) { 
    88     sum += i; 
    89   } 
     85        <span class="comment">//Do some processing</span> 
     86        <span class="keywordflow">for</span> ( i = 0; i &lt; N; i++ ) { 
     87                sum += i; 
     88        } 
    9089 
    91   <span class="comment">// Print the elapsed time</span> 
    92   tt.toc_print(); 
     90        <span class="comment">// Print the elapsed time</span> 
     91        tt.toc_print(); 
    9392 
    94   <span class="comment">//Print the result of the processing:</span> 
    95   cout &lt;&lt; <span class="stringliteral">"The sum of all integers from 0 to "</span> &lt;&lt; N - 1 &lt;&lt; <span class="stringliteral">" equals "</span> &lt;&lt; sum &lt;&lt; endl; 
     93        <span class="comment">//Print the result of the processing:</span> 
     94        cout &lt;&lt; <span class="stringliteral">"The sum of all integers from 0 to "</span> &lt;&lt; N - 1 &lt;&lt; <span class="stringliteral">" equals "</span> &lt;&lt; sum &lt;&lt; endl; 
    9695 
    97   <span class="comment">//Exit program:</span> 
    98   <span class="keywordflow">return</span> 0; 
     96        <span class="comment">//Exit program:</span> 
     97        <span class="keywordflow">return</span> 0; 
    9998 
    10099} 
     
    104103The sum of all integers from 0 to 999999 equals 1783293664 
    105104</pre></div> </div> 
    106 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Aug 5 00:06:51 2009 for mixpp by&nbsp; 
     105<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 16 17:58:18 2009 for mixpp by&nbsp; 
    107106<a href="http://www.doxygen.org/index.html"> 
    108 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> 
     107<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> 
    109108</body> 
    110109</html>