24 #ifndef __stir_listmode_ListTime_H__ 25 #define __stir_listmode_ListTime_H__ 51 virtual unsigned long get_time_in_millisecs()
const = 0;
52 inline double get_time_in_secs()
const {
return get_time_in_millisecs() / 1000.; }
54 virtual Succeeded set_time_in_millisecs(
const unsigned long time_in_millisecs) = 0;
55 inline Succeeded set_time_in_secs(
const double time_in_secs)
57 unsigned long time_in_millisecs;
58 round_to(time_in_millisecs, time_in_secs / 1000.);
59 return set_time_in_millisecs(time_in_millisecs);
Declaration of class stir::Succeeded.
Declaration of the stir::round functions.
void round_to(integerT &result, const float x)
Implements rounding of floating point numbers to other integer types.
Definition: round.inl:26
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition: Succeeded.h:43
A class for storing and using a timing record from a listmode file.
Definition: ListTime.h:46