textPerformanceLog.cc Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
textPerformanceLog.cc
Go to the documentation of this file.
1 /* textPerformanceLog.cc
2 */
3 #include "osl/misc/log/textPerformanceLog.h"
4 #include "osl/record/csa.h"
5 #include <iostream>
6
7 osl::misc::log::TextPerformanceLog::
8 TextPerformanceLog()
9 {
10 }
11
12 osl::misc::log::TextPerformanceLog::~TextPerformanceLog()
13 {
14 }
15
16 void osl::misc::log::TextPerformanceLog::
17 record(const char *name, Move correctMove, Move result,
18 unsigned int nodes, unsigned int qnodes, double seconds, int depth)
19 {
20 std::cout << name << "\t";
21 if (correctMove == result)
22 std::cout << "OK";
23 else
24 {
25 csaShow(std::cout, result);
26 }
27 std::cout << "\t";
28 csaShow(std::cout, correctMove);
29 std::cout << "\t" << nodes
30 << "\t" << qnodes
31 << "\t" << nodes + qnodes
32 << "\t" << seconds
33 << "\t" << depth
34 << std::endl
35 << std::flush;
36 }
37
38 /* ------------------------------------------------------------------------- */
39 // ;;; Local Variables:
40 // ;;; mode:c++
41 // ;;; c-basic-offset:2
42 // ;;; End: