diff --git a/sf-buffer/src/sf_replay.cpp b/sf-buffer/src/sf_replay.cpp index 2781a76..013c937 100644 --- a/sf-buffer/src/sf_replay.cpp +++ b/sf-buffer/src/sf_replay.cpp @@ -117,12 +117,20 @@ void sf_replay ( file_index_offset < FILE_MOD; file_index_offset += REPLAY_BLOCK_SIZE) { + auto start_time = chrono::steady_clock::now(); + load_data_from_file( metadata_buffer.get(), (char*)(image_buffer.get()), filename, file_index_offset); + auto end_time = chrono::steady_clock::now(); + auto ms_duration = chrono::duration_cast( + end_time-start_time).count(); + + cout << "read_ms " << ms_duration << endl; + for (size_t i_frame=0; i_frame < REPLAY_BLOCK_SIZE; i_frame++) { ModuleFrame module_frame = { diff --git a/sf-buffer/src/sf_writer.cpp b/sf-buffer/src/sf_writer.cpp index 686a640..749446d 100644 --- a/sf-buffer/src/sf_writer.cpp +++ b/sf-buffer/src/sf_writer.cpp @@ -199,7 +199,8 @@ int main (int argc, char *argv[]) // TODO: Some poor statistics. - auto ms_duration = chrono::duration_cast(end_time-start_time).count(); + auto ms_duration = chrono::duration_cast( + end_time-start_time).count(); total_ms += ms_duration; if (ms_duration > max_ms) { max_ms = ms_duration;