ARTS  2.4.0(git:4fb77825)
m_artstime.cc File Reference

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...
 

Detailed Description

Stuff related to manipulating time.

Author
Richard Larsson
Date
2020-04-13

Definition in file m_artstime.cc.

Function Documentation

◆ Duration()

void Duration ( Numeric duration,
const Time start,
const Time end,
const Verbosity verbosity 
)

WORKSPACE METHOD: Duration.

Sets the seconds between two times.

Author
Richard Larsson
Parameters
[out]durationGeneric output
[in]startGeneric Input
[in]endGeneric Input

Definition at line 41 of file m_artstime.cc.

Referenced by Duration_g().

◆ LocalTimeOffset()

void LocalTimeOffset ( Numeric dt,
const Verbosity verbosity 
)

WORKSPACE METHOD: LocalTimeOffset.

Sets the seconds between localtime and gmtime representation of now().

Author
Richard Larsson
Parameters
[out]dtGeneric output

Definition at line 59 of file m_artstime.cc.

References ARTS::Var::time().

Referenced by LocalTimeOffset_g().

◆ Sleep()

void Sleep ( const Numeric time,
const Verbosity verbosity 
)

WORKSPACE METHOD: Sleep.

Sleeps for a number of seconds

Author
Richard Larsson
Parameters
[in]timeGeneric Input

Definition at line 47 of file m_artstime.cc.

Referenced by Sleep_g().

◆ time_gridOffset()

void time_gridOffset ( ArrayOfTime time_grid,
const Numeric dt,
const Verbosity verbosity 
)

WORKSPACE METHOD: time_gridOffset.

Offsets a time grid by some seconds.

Author
Richard Larsson
Parameters
[in,out]time_gridWS Input/Output
[in]dtGeneric 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().

◆ timeNow()

void timeNow ( Time time,
const Verbosity verbosity 
)

WORKSPACE METHOD: timeNow.

Sets time to system_clock::now().

Author
Richard Larsson
Parameters
[out]timeWS Output

Definition at line 35 of file m_artstime.cc.

References ARTS::Var::time().

Referenced by timeNow_g().

◆ timeOffset()

void timeOffset ( Time time,
const Numeric offset,
const Verbosity verbosity 
)

WORKSPACE METHOD: timeOffset.

Offsets time for some seconds

Author
Richard Larsson
Parameters
[in,out]timeWS Input/Output
[in]offsetGeneric Input

Definition at line 68 of file m_artstime.cc.

References ARTS::Var::time().

Referenced by time_gridOffset(), and timeOffset_g().

◆ timeSleep()

void timeSleep ( const Time time,
const Verbosity verbosity 
)

WORKSPACE METHOD: timeSleep.

Sleeps until time has been reached.

Author
Richard Larsson
Parameters
[in]timeWS Input

Definition at line 53 of file m_artstime.cc.

References ARTS::Var::time().

Referenced by timeSleep_g().