diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-01-31 17:57:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-01-31 18:00:08 +0300 |
commit | f90891d87e351ef1c9509007a18dc72ee5025809 (patch) | |
tree | 11038eaf4249531fbd698d7312168abd5a4a719a /source/blender/blenlib/PIL_time.h | |
parent | 9e9cd77b8de68015a98659671272cc9d78710e69 (diff) |
Add PIL_check_seconds_timer_i to avoid casting
note, win32 casts still casts from double.
Diffstat (limited to 'source/blender/blenlib/PIL_time.h')
-rw-r--r-- | source/blender/blenlib/PIL_time.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/blenlib/PIL_time.h b/source/blender/blenlib/PIL_time.h index 158559fa3d9..6e347339980 100644 --- a/source/blender/blenlib/PIL_time.h +++ b/source/blender/blenlib/PIL_time.h @@ -37,7 +37,7 @@ extern "C" { #endif -extern +extern /** Return an indication of time, expressed as * seconds since some fixed point. Successive calls * are guaranteed to generate values greater than or @@ -45,6 +45,12 @@ extern */ double PIL_check_seconds_timer(void); +extern +/** + * int version of #PIL_check_seconds_timer + */ +long int PIL_check_seconds_timer_i(void); + /** * Platform-independent sleep function. * \param ms Number of milliseconds to sleep |