A clock that can be used to measure time.
struct Clock(i32)
| Position | Description |
|---|---|
| 1 | The integer representing the clock. |
| Receiver | Name | Description |
|---|---|---|
self | get_time | Returns the current time of the clock. |
self | resolution | Returns the resolution of the clock. |
self | set_time | Sets the time of the clock. |
self | sleep_for | Sleeps for an amount of time. |
self | sleep_to | Sleeps until an absolute time. |
self | timer | Creates a new timer. |
self | timer_non_blocking | Creates a new non-blocking timer. |
| Name | Description |
|---|---|
| Clone | Objects that can be duplicated. |
| Copy | Objects that can safely be copied via |
| Eq | Objects that implement the binary |
| MaybeClone | Objects that can be duplicated. |
| Pod | Objects that are safe to use if they contain a random bit pattern. |