[Compbench-devel] CompBenchmarks++/libcompbenchmarks/UI UI.cpp, 1.6, 1.7 UI.h, 1.5, 1.6
Brought to you by:
xfred
From: Frederic T. <xf...@us...> - 2007-05-23 18:25:04
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv26338 Modified Files: UI.cpp UI.h Log Message: Improved API to display benchmark results. Index: UI.h =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** UI.h 17 May 2007 14:33:45 -0000 1.5 --- UI.h 23 May 2007 18:25:00 -0000 1.6 *************** *** 78,81 **** --- 78,85 ---- float _progress = 0); + virtual void InformationBenchmarkResult(std::string _bid, + std::string _xtime, + std::string _r); + /* virtual void ProgressInit(std::string msg); Index: UI.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** UI.cpp 17 May 2007 14:33:45 -0000 1.6 --- UI.cpp 23 May 2007 18:25:00 -0000 1.7 *************** *** 170,173 **** --- 170,181 ---- } + void UI::InformationBenchmarkResult(std::string _bid, + std::string _xtime, + std::string _r) + { + std::cout << _bid << " Execution time (s) : " << _xtime << std::endl; + std::cout << _bid << " Measured (higher is better) : " << _r << std::endl; + } + /* void UI::ProgressInit(std::string msg) |