Class Time
Inheritance
System.Object
Time
Namespace: RosNet.DataModel
Assembly: RosNet.dll
Syntax
public class Time : IComparable<Time>
Constructors
| Improve this Doc View SourceTime(UInt32, UInt32)
Create a RosTime object from seconds and nanoseconds
Declaration
public Time(uint secs, uint nsecs)
Parameters
| Type | Name | Description |
|---|---|---|
| System.UInt32 | secs | |
| System.UInt32 | nsecs |
Properties
| Improve this Doc View SourceNSecs
Declaration
public uint NSecs { get; }
Property Value
| Type | Description |
|---|---|
| System.UInt32 |
Secs
Declaration
public uint Secs { get; }
Property Value
| Type | Description |
|---|---|
| System.UInt32 |
Methods
| Improve this Doc View SourceCompareTo(Time)
Compares two time objects by comparing sec and nano sec
Declaration
public int CompareTo(Time other)
Parameters
| Type | Name | Description |
|---|---|---|
| Time | other |
Returns
| Type | Description |
|---|---|
| System.Int32 |
ToDateTime()
Turns Seconds and Nanoseconds into a DateTime object
Declaration
public DateTime ToDateTime()
Returns
| Type | Description |
|---|---|
| DateTime | A DateTime object corresponding to the Rostime's time |