Skip to content

Commit

Permalink
Deprecated Time constructors
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <[email protected]>
  • Loading branch information
ahcorde committed Aug 25, 2020
1 parent b7f544c commit cf46105
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions include/ignition/common/Time.hh
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,32 @@ namespace ignition
};

/// \brief Constructors
public: Time();
public: [[deprecated("Do not use this class, use std::chrono")]] Time();

/// \brief Copy constructor
/// \param[in] time Time to copy
public: Time(const Time &_time);
public:
[[deprecated("Do not use this class, use std::chrono")]]
Time(const Time &_time);

/// \brief Constructor
/// \param[in] _tv Time to initialize to
public: explicit Time(const struct timespec &_tv);
public: explicit
[[deprecated("Do not use this class, use std::chrono")]]
Time(const struct timespec &_tv);

/// \brief Constructor
/// \param[in] _sec Seconds
/// \param[in] _nsec Nanoseconds
public: Time(int32_t _sec, int32_t _nsec);
public:
[[deprecated("Do not use this class, use std::chrono")]]
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
[[deprecated("Do not use this class, use std::chrono")]]
Time(double _time);

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

0 comments on commit cf46105

Please sign in to comment.