Show / Hide Table of Contents

Class Time

Inheritance
System.Object
Time
Namespace: RosNet.DataModel
Assembly: RosNet.dll
Syntax
public class Time : IComparable<Time>

Constructors

| Improve this Doc View Source

Time(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 Source

NSecs

Declaration
public uint NSecs { get; }
Property Value
Type Description
System.UInt32
| Improve this Doc View Source

Secs

Declaration
public uint Secs { get; }
Property Value
Type Description
System.UInt32

Methods

| Improve this Doc View Source

CompareTo(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
| Improve this Doc View Source

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

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX