This header file is part of the utilities library; it contains the time function declarations.
More...
|
void | timespec_add (struct timespec *tp, const struct timespec *inc) |
| Adds the time interval *inc to the time at tp.
|
|
void | timespec_add_sec (struct timespec *tp, uint_least64_t sec) |
| Adds sec seconds to the time at tp.
|
|
void | timespec_add_msec (struct timespec *tp, uint_least64_t msec) |
| Adds msec milliseconds to the time at tp.
|
|
void | timespec_add_usec (struct timespec *tp, uint_least64_t usec) |
| Adds usec microseconds to the time at tp.
|
|
void | timespec_add_nsec (struct timespec *tp, uint_least64_t nsec) |
| Adds nsec nanoseconds to the time at tp.
|
|
void | timespec_sub (struct timespec *tp, const struct timespec *dec) |
| Subtracts the time interval *dec from the time at tp.
|
|
void | timespec_sub_sec (struct timespec *tp, uint_least64_t sec) |
| Subtracts sec seconds from the time at tp.
|
|
void | timespec_sub_msec (struct timespec *tp, uint_least64_t msec) |
| Subtracts msec milliseconds from the time at tp.
|
|
void | timespec_sub_usec (struct timespec *tp, uint_least64_t usec) |
| Subtracts usec microseconds from the time at tp.
|
|
void | timespec_sub_nsec (struct timespec *tp, uint_least64_t nsec) |
| Subtracts nsec nanoseconds from the time at tp.
|
|
int_least64_t | timespec_diff_sec (const struct timespec *t1, const struct timespec *t2) |
| Returns the time difference (in seconds) between *t1 and *t2. More...
|
|
int_least64_t | timespec_diff_msec (const struct timespec *t1, const struct timespec *t2) |
| Returns the time difference (in milliseconds) between *t1 and *t2. More...
|
|
int_least64_t | timespec_diff_usec (const struct timespec *t1, const struct timespec *t2) |
| Returns the time difference (in microseconds) between *t1 and *t2. More...
|
|
int_least64_t | timespec_diff_nsec (const struct timespec *t1, const struct timespec *t2) |
| Returns the time difference (in nanoseconds) between *t1 and *t2.
|
|
int | timespec_cmp (const void *p1, const void *p2) |
| Compares two times. More...
|
|
This header file is part of the utilities library; it contains the time function declarations.
- Copyright
- 2013-2019 Lely Industries N.V.
- Author
- J. S. Seldenthuis jseld.nosp@m.enth.nosp@m.uis@l.nosp@m.ely..nosp@m.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file time.h.