Use chrono::duration for animation frame durations.
This commit is contained in:
parent
d81e127686
commit
5b509c277a
4 changed files with 53 additions and 12 deletions
3
rand.hpp
3
rand.hpp
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
#include <random>
|
||||
#include <chrono>
|
||||
|
||||
|
||||
namespace Random {
|
||||
|
|
@ -25,4 +26,6 @@ namespace Random {
|
|||
|
||||
return rand(GENERATOR);
|
||||
}
|
||||
|
||||
std::chrono::milliseconds milliseconds(int from, int to);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue