36 auto time_str =
"5 seconds";
39 std::cout <<
"The " << time_str <<
" intervals are:\n";
40 for (
Index i=0;
i<limits.nelem()-2;
i++)
41 std::cout << 1+
i <<
": " << x[limits[
i]] <<
" to "<< x[limits[
i+1]] <<
"\n";
42 std::cout << limits.nelem()-1 <<
": " << x[limits[limits.nelem()-2]] <<
" to "<< x.back() <<
"\n";
INDEX Index
The type to use for all integer numbers and indices.
Class to handle time in ARTS.
std::chrono::duration< Numeric > TimeStep
A duration of time, 1 full tick should be 1 second.
NUMERIC Numeric
The type to use for all floating point numbers.
Array< Time > ArrayOfTime
List of times.
Stuff related to time in ARTS.
ArrayOfIndex time_steps(const ArrayOfTime ×, const String &step)
Finds the index matching demands in a list of times.