This library provides chrono utilities.
More...
#include <chrono>
#include <iostream>
#include <ratio>
#include <string>
#include <thread>
#include <utility>
Go to the source code of this file.
|
using | rush::chrono::ns = std::nano |
| Convenience alias for nanoseconds.
|
|
using | rush::chrono::us = std::micro |
| Convenience alias for microseconds.
|
|
using | rush::chrono::ms = std::milli |
| Convenience alias for milliseconds.
|
|
using | rush::chrono::s = std::ratio<1> |
| Convenience alias for seconds.
|
|
using | rush::chrono::min = std::ratio<60> |
| Convenience alias for minutes.
|
|
using | rush::chrono::hour = std::ratio<3600> |
| Convenience alias for hours.
|
|
using | rush::chrono::day = std::ratio<86400> |
| Convenience alias for days.
|
|
This library provides chrono utilities.
- Author
- Raul Tapia (raultapia.com)
- Copyright
- GNU General Public License v3.0
- See also
- https://github.com/raultapia/rush
◆ sleep()
template<typename T = s>
void rush::chrono::sleep |
( |
double | t | ) |
|
|
inline |
Sleep for the specified duration.
- Template Parameters
-
T | Unit of time (default to seconds). |
- Parameters
-