mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 12:07:43 +00:00
Print gensfen speed when outputting status.
This commit is contained in:
@@ -229,10 +229,18 @@ namespace Learner
|
|||||||
// Dedicated thread to write to file
|
// Dedicated thread to write to file
|
||||||
void file_write_worker()
|
void file_write_worker()
|
||||||
{
|
{
|
||||||
|
auto startTime = now();
|
||||||
|
|
||||||
auto output_status = [&]()
|
auto output_status = [&]()
|
||||||
{
|
{
|
||||||
// Also output the current time to console.
|
// Also output the current time to console.
|
||||||
sync_cout << endl << sfen_write_count << " sfens , at " << now_string() << sync_endl;
|
const auto nowTime = now();
|
||||||
|
const TimePoint elapsed = nowTime - startTime + 1;
|
||||||
|
|
||||||
|
sync_cout << endl
|
||||||
|
<< sfen_write_count << " sfens, "
|
||||||
|
<< sfen_write_count * 1000 / elapsed << " sfens/second, "
|
||||||
|
<< "at " << now_string() << sync_endl;
|
||||||
};
|
};
|
||||||
|
|
||||||
while (!finished || sfen_buffers_pool.size())
|
while (!finished || sfen_buffers_pool.size())
|
||||||
|
|||||||
Reference in New Issue
Block a user