diff options
Diffstat (limited to 'src/utils/time.h')
-rw-r--r-- | src/utils/time.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/utils/time.h b/src/utils/time.h index ac7cd351..58b8164a 100644 --- a/src/utils/time.h +++ b/src/utils/time.h @@ -39,11 +39,16 @@ namespace Time uint32_t absoluteTimeMs(); /** - * The time in milliseconds since the last frame, maximized to 1000ms. + * The time in milliseconds since the last frame, but never more than 1000. */ unsigned deltaTimeMs(); /** + * The time in seconds since the last frame, but never more than 1. + */ +float deltaTime(); + +/** * Called at the start of each frame, updates the above variables. */ void beginFrame(); |