Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated common:Time #90

Merged
merged 17 commits into from
Sep 18, 2020
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions include/ignition/common/Time.hh
Original file line number Diff line number Diff line change
Expand Up @@ -52,31 +52,31 @@ namespace ignition
};

/// \brief Constructors
public: Time();
public: IGN_DEPRECATED(4) Time();

/// \brief Copy constructor
/// \param[in] time Time to copy
public: Time(const Time &_time);
public: IGN_DEPRECATED(4) Time(const Time &_time);

/// \brief Constructor
/// \param[in] _tv Time to initialize to
public: explicit Time(const struct timespec &_tv);
public: explicit IGN_DEPRECATED(4) Time(const struct timespec &_tv);

/// \brief Constructor
/// \param[in] _sec Seconds
/// \param[in] _nsec Nanoseconds
public: Time(int32_t _sec, int32_t _nsec);
public: IGN_DEPRECATED(4) Time(int32_t _sec, int32_t _nsec);

/// \brief Constuctor
/// \param[in] _time Time in double format sec.nsec
public: explicit Time(double _time);
public: explicit IGN_DEPRECATED(4) Time(double _time);

/// \brief Destructor
public: virtual ~Time();

/// \brief Get the wall time
/// \return the current time
public: static const Time &SystemTime();
public: static const IGN_DEPRECATED(4) Time &SystemTime();

/// \brief Set to sec and nsec
/// \param[in] _sec Seconds
Expand All @@ -103,7 +103,7 @@ namespace ignition
/// actual call to the system's sleep function.
///
/// On Windows the return value is always common::Time::Zero.
public: static Time Sleep(const common::Time &_time);
public: static Time IGN_DEPRECATED(4) Sleep(const common::Time &_time);

/// \brief Get the time as a string formatted as "DD hh:mm:ss.mmm", with
/// the option to choose the start/end.
Expand Down