Search:
Reference
<ctime>
CLOCKS_PER_SEC
macro
<ctime>
CLOCKS_PER_SEC
Clock ticks per second
This macro expands to an expression representing the number of
clock ticks
per second.
Clock ticks
are units of time of a constant but system-specific length, as those returned by function
clock
.
Dividing a count of
clock ticks
by this expression yields the number of seconds.
The type of this macro is unspecified.
This macro evaluates to an expression of type
clock_t
.
CLK_TCK
is an obsolete alias of this macro.
See also
clock
Clock program
(function )
clock_t
Clock type
(type )
C++
Information
Tutorials
Reference
Articles
Forum
Reference
C library:
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
<cfenv> (fenv.h)
<cfloat> (float.h)
<cinttypes> (inttypes.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
<cstdbool> (stdbool.h)
<cstddef> (stddef.h)
<cstdint> (stdint.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
<ctgmath> (tgmath.h)
<ctime> (time.h)
<cuchar> (uchar.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
Containers:
<array>
<deque>
<forward_list>
<list>
<map>
<queue>
<set>
<stack>
<unordered_map>
<unordered_set>
<vector>
Input/Output:
<fstream>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<ostream>
<sstream>
<streambuf>
Multi-threading:
<atomic>
<condition_variable>
<future>
<mutex>
<thread>
Other:
<algorithm>
<bitset>
<chrono>
<codecvt>
<complex>
<exception>
<functional>
<initializer_list>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
<random>
<ratio>
<regex>
<stdexcept>
<string>
<system_error>
<tuple>
<typeindex>
<typeinfo>
<type_traits>
<utility>
<valarray>
<ctime> (time.h)
functions:
asctime
clock
ctime
difftime
gmtime
localtime
mktime
strftime
time
macros:
CLOCKS_PER_SEC
NULL
types:
clock_t
size_t
time_t
struct tm