An LBMSDMRawTimestamp is a helper class to minimise the effort of formatting and parsing Timestamps. A Timestamp is the number of seconds and microseconds since Unix epoch.
More...
|
virtual void | set (uint s, uint m) |
| Set a uint32 field providing the value as a long. More...
|
|
| LBMSDMRawTimestamp () |
| Create a raw timestamp field, defaulting to 0.
|
|
| LBMSDMRawTimestamp (uint s, uint m) |
| Set a raw timestamp field providing the seconds and microseconds since UNIX epoch. More...
|
|
| LBMSDMRawTimestamp (System.String s) |
| Set a raw timestamp field providing a string formatted timestamp. More...
|
|
| LBMSDMRawTimestamp (System.DateTime dt) |
| Set a raw timestamp field providing a string formatted timestamp in the form sec.micro or "now". More...
|
|
virtual long | get_sec () |
| Get the number of seconds since epoch. More...
|
|
virtual long | get_usec () |
| Get the number of microseconds since the start of the current second. More...
|
|
override System.String | ToString () |
| Get a string version of a timestamp. More...
|
|
virtual int | format (byte[] buf, int offset) |
| Format the raw timestamp value into a byte buffer. More...
|
|
virtual int | parse (byte[] buf, int offset) |
| Parse the raw timestamp value from a byte buffer. More...
|
|
virtual new System.Object | Clone () |
| Get a copy of this object. More...
|
|
virtual System.String | toDbgString () |
| Get a debug string for this object. This is not expected to be called and exists for child classes. More...
|
|
virtual void | set_debug_level (int level) |
| Set the debug level for processing this SDM message. Currently all debugs go to standard out. More...
|
|
virtual void | log (System.String s) |
| Log an event. If debug level is set greater than 0, output to stderr. More...
|
|
An LBMSDMRawTimestamp is a helper class to minimise the effort of formatting and parsing Timestamps. A Timestamp is the number of seconds and microseconds since Unix epoch.
com.latencybusters.lbm.sdm.LBMSDMRawTimestamp.LBMSDMRawTimestamp |
( |
uint |
s, |
|
|
uint |
m |
|
) |
| |
Set a raw timestamp field providing the seconds and microseconds since UNIX epoch.
- Parameters
-
s | The number of seconds since epoch |
m | The number of microseconds since epoch |
com.latencybusters.lbm.sdm.LBMSDMRawTimestamp.LBMSDMRawTimestamp |
( |
System.String |
s | ) |
|
Set a raw timestamp field providing a string formatted timestamp.
- Parameters
-
s | The string containing the time ("sec.micro" or "now") |
com.latencybusters.lbm.sdm.LBMSDMRawTimestamp.LBMSDMRawTimestamp |
( |
System.DateTime |
dt | ) |
|
Set a raw timestamp field providing a string formatted timestamp in the form sec.micro or "now".
- Parameters
-
dt | The C# DateTime object to be stored as a timestamp |
virtual new System.Object com.latencybusters.lbm.sdm.LBMSDMRawTimestamp.Clone |
( |
| ) |
|
|
virtual |
virtual int com.latencybusters.lbm.sdm.LBMSDMRawTimestamp.format |
( |
byte[] |
buf, |
|
|
int |
offset |
|
) |
| |
|
virtual |
virtual long com.latencybusters.lbm.sdm.LBMSDMRawTimestamp.get_sec |
( |
| ) |
|
|
virtual |
Get the number of seconds since epoch.
- Returns
- The number of seconds since epoch
virtual long com.latencybusters.lbm.sdm.LBMSDMRawTimestamp.get_usec |
( |
| ) |
|
|
virtual |
Get the number of microseconds since the start of the current second.
- Returns
- The number of seconds since the start of the current second
virtual void com.latencybusters.lbm.sdm.LBMSDM.log |
( |
System.String |
s | ) |
|
|
virtualinherited |
Log an event. If debug level is set greater than 0, output to stderr.
- Parameters
-
s | String containing the event to log |
virtual int com.latencybusters.lbm.sdm.LBMSDMRawTimestamp.parse |
( |
byte[] |
buf, |
|
|
int |
offset |
|
) |
| |
|
virtual |
virtual void com.latencybusters.lbm.sdm.LBMSDMRawTimestamp.set |
( |
uint |
s, |
|
|
uint |
m |
|
) |
| |
|
virtual |
virtual void com.latencybusters.lbm.sdm.LBMSDM.set_debug_level |
( |
int |
level | ) |
|
|
virtualinherited |
Set the debug level for processing this SDM message. Currently all debugs go to standard out.
- Parameters
-
virtual System.String com.latencybusters.lbm.sdm.LBMSDMRaw.toDbgString |
( |
| ) |
|
|
virtualinherited |
override System.String com.latencybusters.lbm.sdm.LBMSDMRawTimestamp.ToString |
( |
| ) |
|
Get a string version of a timestamp.
- Returns
- A string representation of the timestamp in the format, "seconds.microseconds", which is not a floating point representation of the time.
The documentation for this class was generated from the following file: