mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Retire struct Log
No more used now that we have removed "Write Search Log" UCI option. No functional change.
This commit is contained in:
parent
b66552fc27
commit
ff480bdb83
2 changed files with 2 additions and 7 deletions
|
@ -17,6 +17,7 @@
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <fstream>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#ifndef MISC_H_INCLUDED
|
#ifndef MISC_H_INCLUDED
|
||||||
#define MISC_H_INCLUDED
|
#define MISC_H_INCLUDED
|
||||||
|
|
||||||
#include <fstream>
|
#include <ostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -37,12 +37,6 @@ extern void dbg_mean_of(int v);
|
||||||
extern void dbg_print();
|
extern void dbg_print();
|
||||||
|
|
||||||
|
|
||||||
struct Log : public std::ofstream {
|
|
||||||
Log(const std::string& f = "log.txt") : std::ofstream(f.c_str(), std::ios::out | std::ios::app) {}
|
|
||||||
~Log() { if (is_open()) close(); }
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
namespace Time {
|
namespace Time {
|
||||||
typedef int64_t point;
|
typedef int64_t point;
|
||||||
inline point now() { return system_time_to_msec(); }
|
inline point now() { return system_time_to_msec(); }
|
||||||
|
|
Loading…
Add table
Reference in a new issue