Skip to content

Commit

Permalink
Added obsolete attribute to redundant time sources
Browse files Browse the repository at this point in the history
  • Loading branch information
szylis committed Feb 22, 2024
1 parent c40a3d6 commit 9519b0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Assets/Ros2ForUnity/Scripts/Time/DotnetTimeSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ namespace ROS2
/// DateTime based clock that has resolution increased using Stopwatch.
/// DateTime is used to synchronize since Stopwatch tends to drift.
/// </summary>
[System.Obsolete("This TimeSource is deprecated and will be removed in the future versions. Please use DotNetSystemTimeSource instead.")]
public class DotnetTimeSource : ITimeSource
{
private readonly double maxUnsyncedSeconds = 10;
Expand Down
1 change: 1 addition & 0 deletions Assets/Ros2ForUnity/Scripts/Time/ROS2ScalableTimeSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace ROS2
/// <summary>
/// ros2 time source (system time by default).
/// </summary>
[System.Obsolete("This TimeSource is deprecated and will be removed in the future versions. Please use DotNetSystemTimeSource instead.")]
public class ROS2ScalableTimeSource : ITimeSource
{
private Thread mainThread;
Expand Down

0 comments on commit 9519b0b

Please sign in to comment.