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%2Fclock_t.html | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 devdocs/c/chrono%2Fclock_t.html (limited to 'devdocs/c/chrono%2Fclock_t.html') diff --git a/devdocs/c/chrono%2Fclock_t.html b/devdocs/c/chrono%2Fclock_t.html deleted file mode 100644 index 5946393a..00000000 --- a/devdocs/c/chrono%2Fclock_t.html +++ /dev/null @@ -1,37 +0,0 @@ -

clock_t

Defined in header <time.h>
typedef /* unspecified */ clock_t;
-

Arithmetic(until C11)Real(since C11) type capable of representing the processor time used by a process. It has implementation-defined range and precision.

-

Example

#include <stdio.h>
-#include <time.h>
-#include <math.h>
- 
-volatile double sink;
-int main (void)
-{
-  clock_t start = clock();
- 
-  for(size_t i=0; i<3141592; ++i)
-      sink+=sin(i);
- 
-  clock_t end = clock();
-  double cpu_time_used = ((double) (end - start)) / CLOCKS_PER_SEC;
- 
-  printf("for loop took %f seconds to execute \n", cpu_time_used);
-}

Possible output:

-
for loop took 0.271828 seconds to execute

References

See also

- - -
returns raw processor clock time since the program is started
(function)
number of processor clock ticks per second
(macro constant)
C++ documentation for clock_t
-

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

-
-- cgit v1.2.3