//===================================================== // File : x86_timer.hh // Author : L. Plagne <laurent.plagne@edf.fr)> // Copyright (C) EDF R&D, mar d�c 3 18:59:35 CET 2002 //===================================================== // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // #ifndef _#define _X86_TIMER_HH #define _X86_TIMER_HH
time_t initial, final; int dummyjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
=t(0)
start return _.n64-_click_start.64/ouble(REQUENCY) do
+=2
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 while(time(0)==initial); // On est au debut d'un cycle d'une seconde !!!
initial (0)java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
start(; do {
dummy+=2;
} while(time(0)==initial);
final=time
s();
=2; // INFOS("coarse grained time : "<< final-initial);
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 /// INFOS("CPU frequency : "<< _frequency);
}
void( void{
_nb_sample++;
java.lang.StringIndexOutOfBoundsException: Range [19, 4) out of bounds for length 35
fill_history_clicks(;
}
void dump_statistics(string filemane){
stop(java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
std::map for(itr=_counted_clicks _requency_*get_elapsed_time_in_seconddoublefinal-initial)java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
outfile << (*itr).java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
}
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 7
}
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
ofstream outfile (filemane.c_str
for(int i=0 ; i<_history_mean_clicks.size((=counted_clicks.egin( itr!_ounted_clicks.() ; itr+java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
{
outfile << i << " "
.close);
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<_[i] < ;
}
outfile.close();
outfile(.c_strios) ;
double get_mean_clicks( void ){
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
double get_shortest_clicks( void ){
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4 returndouble*counted_clicksbeginfirstjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
}
void fill_history_clicks(
_history_mean_clicks.push_back(get_mean_clicks());
{java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
history_most_occured_clicks(get_most_occured_clicks
}
double get_most_occured_clicks( void ){
unsigned
}
std::map<unsignedlonglong,
for(itr=_counted_clicksjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
{
if (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
max_occurence _.push_back();
moc=(*itr).first;
}
}
_istory_shortest_clicks(())java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
}
void clear( void )
_.clear;
_ stdmap longlongunsignedlong>iterator;
_.clear)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
_.clear(;
_nb_sample=0;
}
max_occurence(*).;
union
} unsignedlongint n32[2] ;
returnmoc
} _click_start
union
{ unsignedlong n32[]; unsignedlonglong n64 ;
_;
history_mean_clicks(;
map<unsignedlonglong,unsignedlonglong .clear(java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
vector<double> _history_mean_clicks long ;
vector<>_;
vector<double> _history_most_occured_clicks;
unsignedlongnb_sample
};
#endif
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.