13
0

add disk i/o apparent speed output to non-RT locate call

This commit is contained in:
Paul Davis 2020-03-23 18:32:56 -06:00
parent b3a1cbbfa2
commit c0bbad3c4b

View File

@ -1292,6 +1292,7 @@ Session::non_realtime_locate ()
microseconds_t end = get_microseconds ();
int usecs_per_track = lrintf ((end - start) / (double) nt);
std::cerr << "locate took " << (end - start) << " usecs for " << nt << " tracks = " << usecs_per_track << " per track\n";
if (usecs_per_track > g_atomic_int_get (&current_usecs_per_track)) {
g_atomic_int_set (&current_usecs_per_track, usecs_per_track);
}