|
PLCnext API Documentation
22.3.0.20
|
Public Types | |
| typedef std::chrono::microseconds | Ticks |
Public Member Functions | |
| Duration (int factor=0, DurationUnit unit=DurationUnit::None) | |
| Constructs an Duration instance. More... | |
| Duration (const Duration &arg)=default | |
| Copy contructor. More... | |
| Duration & | operator= (const Duration &arg)=default |
| Assignment operator. More... | |
| ~Duration (void)=default | |
| Destructs this instance and frees all resources. More... | |
| int64 | GetFactor (void) const |
| DurationUnit | GetUnit (void) const |
| int64 | GetMicroseconds (void) const |
| Nanoseconds | ToNanoseconds (void) const |
| Microseconds | ToMicroseconds (void) const |
| Milliseconds | ToMilliseconds (void) const |
| Seconds | ToSeconds (void) const |
| Minutes | ToMinutes (void) const |
| Hours | ToHours (void) const |
| Ticks | ToTicks (void) const |
| String | ToString (void) const |
| void | GetDuration (Nanoseconds &value) const |
| void | GetDuration (Microseconds &value) const |
| void | GetDuration (Milliseconds &value) const |
| void | GetDuration (Seconds &value) const |
| void | GetDuration (Minutes &value) const |
| void | GetDuration (Hours &value) const |
Static Public Member Functions | |
| static Duration | Parse (const char *input) |
| static bool | TryParse (const char *input, Duration &result) |
Static Public Attributes | |
| static const Ticks | Tick |
|
inline |
Constructs an Duration instance.
|
default |
Copy contructor.
|
default |
Destructs this instance and frees all resources.
Assignment operator.
1.8.13