Created
January 5, 2017 04:16
-
-
Save kovrov/18500d582522ab8715be9a3a10ac9398 to your computer and use it in GitHub Desktop.
std::chrono
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const auto now = std::chrono::steady_clock::now(); | |
| const auto ms = std::chrono::time_point_cast<std::chrono::milliseconds>(now); | |
| const float angle = (ms.time_since_epoch().count() % (360 * 20)) / 20.0f; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment