File: textPerformanceLog.cc

package info (click to toggle)
libosl 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 273,976 kB
  • sloc: cpp: 129,625; ansic: 7,145; ruby: 1,290; makefile: 558; perl: 413; sh: 35
file content (42 lines) | stat: -rw-r--r-- 936 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* textPerformanceLog.cc
 */
#include "osl/misc/log/textPerformanceLog.h"
#include "osl/record/csa.h"
#include <iostream>

osl::misc::log::TextPerformanceLog::
TextPerformanceLog()
{
}

osl::misc::log::TextPerformanceLog::~TextPerformanceLog()
{
}

void osl::misc::log::TextPerformanceLog::
record(const char *name, Move correctMove, Move result, 
       unsigned int nodes, unsigned int qnodes, double seconds, int depth)
{
  std::cout << name << "\t";
  if (correctMove == result)
    std::cout << "OK";
  else
  {
    csaShow(std::cout, result);
  }
  std::cout << "\t";
  csaShow(std::cout, correctMove);
  std::cout << "\t" << nodes
	    << "\t" << qnodes
	    << "\t" << nodes + qnodes
	    << "\t" << seconds 
	    << "\t" << depth
	    << std::endl
	    << std::flush;
}

/* ------------------------------------------------------------------------- */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End: