From 82ba818ff456bcd6d56a06226e3f27e98fbb55c3 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 14 Aug 2025 22:58:58 -0500 Subject: removing all downloaded devdocs files --- devdocs/c/chrono%2Ftimespec.html | 43 ---------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 devdocs/c/chrono%2Ftimespec.html (limited to 'devdocs/c/chrono%2Ftimespec.html') diff --git a/devdocs/c/chrono%2Ftimespec.html b/devdocs/c/chrono%2Ftimespec.html deleted file mode 100644 index f799f3a3..00000000 --- a/devdocs/c/chrono%2Ftimespec.html +++ /dev/null @@ -1,43 +0,0 @@ -

timespec

Defined in header <time.h>
struct timespec;
-
(since C11)

Structure holding an interval broken down into seconds and nanoseconds.

-

Member objects

- -
time_t tv_sec whole seconds (valid values are >= 0)
/* see below */ tv_nsec nanoseconds (valid values are [0, 999999999])
- - - -

The type of tv_nsec is long.

-
(until C23)

The type of tv_nsec is an implementation-defined signed integer type that can represent integers in [0, 999999999].

-
(since C23)

The declaration order of tv_sec and tv_nsec is unspecified. Implementation may add other members to struct timespec.

-

Notes

The type of tv_nsec is long long on some platforms, which is conforming only since C23.

-

Example

#include <stdio.h>
-#include <time.h>
-#include <stdint.h>
- 
-int main(void)
-{
-    struct timespec ts;
-    timespec_get(&ts, TIME_UTC);
-    char buff[100];
-    strftime(buff, sizeof buff, "%D %T", gmtime(&ts.tv_sec));
-    printf("Current time: %s.%09ld UTC\n", buff, ts.tv_nsec);
-    printf("Raw timespec.time_t: %jd\n", (intmax_t)ts.tv_sec);
-    printf("Raw timespec.tv_nsec: %09ld\n", ts.tv_nsec);
-}

Possible output:

-
Current time: 11/24/21 03:10:50.408191283 UTC
-Raw timespec.time_t: 1637723450
-Raw timespec.tv_nsec: 408191283

References

See also

- - -
-
(C11)
returns the calendar time in seconds and nanoseconds based on a given time base
(function)
calendar time type
(struct)
C++ documentation for timespec
-

- © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
- https://en.cppreference.com/w/c/chrono/timespec -

-
-- cgit v1.2.3