OGS
TimeInterval.h
Go to the documentation of this file.
1
13#pragma once
14
15namespace BaseLib
16{
17class ConfigTree;
18
23struct TimeInterval final
24{
25public:
26 bool contains(const double current_time) const
27 {
28 return (current_time >= start_time && current_time <= end_time);
29 }
30
31 double start_time;
32 double end_time;
33};
34
36
37} // namespace BaseLib
TimeInterval createTimeInterval(ConfigTree const &config)
bool contains(const double current_time) const