This shows you the differences between two versions of the page.
cpp:time [2013/03/06 21:09] Nicholas Johnson created |
cpp:time [2024/02/16 00:48] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Trigonometric | + | **Time Manipulation** |
- | |Function |Description | | + | |clock |Clock program (function ) | |
- | |cos |compute cosine | | + | |difftime |return difference between two times (function ) | |
- | |sin |compute sine | | + | |mktime |Convert tm structure to time_t (function ) | |
- | |tan |compute tangent | | + | |time |Get current time (function ) | |
- | |acos |compute arc cosine | | + | **Conversion** |
- | |asin |compute arc sine | | + | |asctime |Convert tm structure to string (function ) | |
- | |atan |compute arc tangent | | + | |ctime |Convert time_t value to string (function ) | |
- | |atan2 |compute arc tangent with two parameters | | + | |gmtime |Convert time_t to tm as UTC time (function ) | |
- | Hyperbolic | + | |localtime |Convert time_t to tm as local time (function ) | |
- | |Function |Description | | + | |strftime |Format time as string (function ) | |
- | |cosh |compute hyperbolic cosine | | + | **Macro Constants** |
- | |sinh |compute hyperbolic sine | | + | |CLOCKS_PER_SEC|Clock ticks per second (macro ) | |
- | |tanh |compute hyperbolic tangent | | + | |NULL |Null pointer (macro ) | |
- | Exponential and Logarithmic | + | **Types** |
- | |Function |Description | | + | |clock_t |Clock type (type ) | |
- | |exp |compute exponential function | | + | |size_t |Unsigned integral type (type ) | |
- | |frexp |get significand and exponent | | + | |time_t |Time type (type ) | |
- | |ldexp |generate number from significand and exponent| | + | |struct tm |Time structure (type ) | |
- | |log |compute natural logarithm | | + | |
- | |log10 |compute common logarithm | | + | |
- | |modf |break into fractional and integral parts | | + | |
- | Power | + | |
- | |Function |Description | | + | |
- | |pow |raise to power | | + | |
- | |sqrt |compute square root | | + | |
- | Rounding, absolute value and remainder functions | + | |
- | |Function |Description | | + | |
- | |ceil |round up value | | + | |
- | |fabs |compute absolute value | | + | |
- | |floor |round down value | | + | |
- | |fmod |compute remainder of division | | + |