00001 /* textPerformanceLog.cc 00002 */ 00003 #include "osl/misc/log/textPerformanceLog.h" 00004 #include "osl/record/csa.h" 00005 #include <iostream> 00006 00007 osl::misc::log::TextPerformanceLog:: 00008 TextPerformanceLog() 00009 { 00010 } 00011 00012 osl::misc::log::TextPerformanceLog::~TextPerformanceLog() 00013 { 00014 } 00015 00016 void osl::misc::log::TextPerformanceLog:: 00017 record(const char *name, Move correctMove, Move result, 00018 unsigned int nodes, unsigned int qnodes, double seconds, int depth) 00019 { 00020 std::cout << name << "\t"; 00021 if (correctMove == result) 00022 std::cout << "OK"; 00023 else 00024 { 00025 csaShow(std::cout, result); 00026 } 00027 std::cout << "\t"; 00028 csaShow(std::cout, correctMove); 00029 std::cout << "\t" << nodes 00030 << "\t" << qnodes 00031 << "\t" << nodes + qnodes 00032 << "\t" << seconds 00033 << "\t" << depth 00034 << std::endl 00035 << std::flush; 00036 } 00037 00038 /* ------------------------------------------------------------------------- */ 00039 // ;;; Local Variables: 00040 // ;;; mode:c++ 00041 // ;;; c-basic-offset:2 00042 // ;;; End: