ARTS
2.4.0(git:4fb77825)
|
Stuff related to manipulating time. More...
#include <thread>
#include "matpackI.h"
#include "artstime.h"
#include "messages.h"
#include "sorting.h"
Go to the source code of this file.
Functions | |
void | timeNow (Time &time, const Verbosity &) |
WORKSPACE METHOD: timeNow. More... | |
void | Duration (Numeric &duration, const Time &t0, const Time &t1, const Verbosity &) |
WORKSPACE METHOD: Duration. More... | |
void | Sleep (const Numeric &duration, const Verbosity &) |
WORKSPACE METHOD: Sleep. More... | |
void | timeSleep (const Time &time, const Verbosity &) |
WORKSPACE METHOD: timeSleep. More... | |
void | LocalTimeOffset (Numeric &dt, const Verbosity &) |
WORKSPACE METHOD: LocalTimeOffset. More... | |
void | timeOffset (Time &time, const Numeric &offset, const Verbosity &) |
WORKSPACE METHOD: timeOffset. More... | |
void | time_gridOffset (ArrayOfTime &time_grid, const Numeric &offset, const Verbosity &verbosity) |
WORKSPACE METHOD: time_gridOffset. More... | |
void Duration | ( | Numeric & | duration, |
const Time & | start, | ||
const Time & | end, | ||
const Verbosity & | verbosity | ||
) |
WORKSPACE METHOD: Duration.
Sets the seconds between two times.
[out] | duration | Generic output |
[in] | start | Generic Input |
[in] | end | Generic Input |
Definition at line 41 of file m_artstime.cc.
Referenced by Duration_g().
WORKSPACE METHOD: LocalTimeOffset.
Sets the seconds between localtime and gmtime representation of now().
[out] | dt | Generic output |
Definition at line 59 of file m_artstime.cc.
References ARTS::Var::time().
Referenced by LocalTimeOffset_g().
WORKSPACE METHOD: Sleep.
Sleeps for a number of seconds
[in] | time | Generic Input |
Definition at line 47 of file m_artstime.cc.
Referenced by Sleep_g().
void time_gridOffset | ( | ArrayOfTime & | time_grid, |
const Numeric & | dt, | ||
const Verbosity & | verbosity | ||
) |
WORKSPACE METHOD: time_gridOffset.
Offsets a time grid by some seconds.
[in,out] | time_grid | WS Input/Output |
[in] | dt | Generic Input |
Definition at line 74 of file m_artstime.cc.
References ARTS::Var::time(), ARTS::Var::time_grid(), timeOffset(), and ARTS::Var::verbosity().
Referenced by time_gridOffset_g().
WORKSPACE METHOD: timeNow.
Sets time to system_clock::now().
[out] | time | WS Output |
Definition at line 35 of file m_artstime.cc.
References ARTS::Var::time().
Referenced by timeNow_g().
WORKSPACE METHOD: timeOffset.
Offsets time for some seconds
[in,out] | time | WS Input/Output |
[in] | offset | Generic Input |
Definition at line 68 of file m_artstime.cc.
References ARTS::Var::time().
Referenced by time_gridOffset(), and timeOffset_g().
WORKSPACE METHOD: timeSleep.
Sleeps until time has been reached.
[in] | time | WS Input |
Definition at line 53 of file m_artstime.cc.
References ARTS::Var::time().
Referenced by timeSleep_g().