MXAnalysisAfterFPGA: Include spot finding analysis time in the total number
This commit is contained in:
@@ -97,7 +97,10 @@ void MXAnalysisAfterFPGA::ReadFromCPU(DeviceOutput *output, const SpotFindingSet
|
||||
|
||||
void MXAnalysisAfterFPGA::Process(DataMessage &message, const SpotFindingSettings& spot_finding_settings) {
|
||||
if (find_spots && (state == State::Enabled)) {
|
||||
const auto t0 = std::chrono::steady_clock::now();
|
||||
SpotAnalyze(experiment, spot_finding_settings, spots, message);
|
||||
const auto t1 = std::chrono::steady_clock::now();
|
||||
spot_finding_time_total += (t1 - t0);
|
||||
|
||||
if (spot_finding_settings.indexing)
|
||||
indexer.ProcessImage(message, spot_finding_settings, message.image, *prediction);
|
||||
@@ -111,6 +114,7 @@ void MXAnalysisAfterFPGA::Process(DataMessage &message, const SpotFindingSetting
|
||||
spot_finding_time_total = std::chrono::duration<double, std::micro>{0.0};
|
||||
spot_finding_timing_active = false;
|
||||
}
|
||||
|
||||
spots.clear();
|
||||
state = State::Idle;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user