Files
Jungfraujoch/receiver/PreviewCounter.h
leonarski_f d315506633 * Enhancements for XFEL
* Enhancements for EIGER
* Writer is more flexible and capable of handling DECTRIS data
2024-03-05 20:41:47 +01:00

20 lines
471 B
C++

// Copyright (2019-2023) Paul Scherrer Institute
#ifndef JUNGFRAUJOCH_PREVIEWCOUNTER_H
#define JUNGFRAUJOCH_PREVIEWCOUNTER_H
#include <cstdint>
#include <mutex>
#include <chrono>
class PreviewCounter {
mutable std::mutex m;
std::chrono::microseconds period;
std::chrono::time_point<std::chrono::system_clock> last_preview;
public:
PreviewCounter(std::chrono::microseconds period);
bool GeneratePreview();
};
#endif //JUNGFRAUJOCH_PREVIEWCOUNTER_H