OpenTAP 9.27
API Reference
Public Member Functions | Static Public Member Functions | List of all members
OpenTap.ShortTimeSpan Struct Reference

Takes care of printing and parsing time spans like '1 s' or '15.3 ms'. Supports seconds, milliseconds, microseconds and nanoseconds. More...

Public Member Functions

void ToString (System.Text.StringBuilder output)
 To avoid generating extra garbage during formatting, this can be used with StringBuilder. More...
 

Static Public Member Functions

static string LongTimeSpanFormat (TimeSpan timeSpan)
 For formating of timespans longer than 1 minute like "1 d 1 h 14m" instead of "90840 s" More...
 

Detailed Description

Takes care of printing and parsing time spans like '1 s' or '15.3 ms'. Supports seconds, milliseconds, microseconds and nanoseconds.

Member Function Documentation

◆ LongTimeSpanFormat()

static string OpenTap.ShortTimeSpan.LongTimeSpanFormat ( TimeSpan  timeSpan)
inlinestatic

For formating of timespans longer than 1 minute like "1 d 1 h 14m" instead of "90840 s"

Parameters
timeSpan
Returns

◆ ToString()

void OpenTap.ShortTimeSpan.ToString ( System.Text.StringBuilder  output)
inline

To avoid generating extra garbage during formatting, this can be used with StringBuilder.

Parameters
output

OpenTAP 9.27 API built Wed Nov 27 2024 13:14:46