No more used now that we have removed
"Write Search Log" UCI option.
No functional change.
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 <iomanip>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#ifndef MISC_H_INCLUDED
#define MISC_H_INCLUDED
#ifndef MISC_H_INCLUDED
#define MISC_H_INCLUDED
#include <string>
#include <vector>
#include <string>
#include <vector>
-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 {
typedef int64_t point;
inline point now() { return system_time_to_msec(); }
namespace Time {
typedef int64_t point;
inline point now() { return system_time_to_msec(); }