File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1037,7 +1037,7 @@ void dev_destroy_file_list(char_p_t *list, int count);
1037
1037
* Returns the number of milliseconds that has passed since
1038
1038
* some unknown point in time.
1039
1039
*/
1040
- uint32_t dev_get_millisecond_count ();
1040
+ uint64_t dev_get_millisecond_count ();
1041
1041
1042
1042
/**
1043
1043
* @ingroup dev_f
Original file line number Diff line number Diff line change @@ -216,24 +216,23 @@ const char *dev_getenv_n(int n) {
216
216
}
217
217
#endif
218
218
219
- uint32_t dev_get_millisecond_count (void ) {
219
+ uint64_t dev_get_millisecond_count (void ) {
220
220
#if defined(__MACH__ )
221
221
struct timeval t ;
222
222
gettimeofday (& t , NULL );
223
- return (uint32_t ) (1000L * t .tv_sec + (t .tv_usec / 1000.0 ));
223
+ return (uint64_t ) (1000L * t .tv_sec + (t .tv_usec / 1000.0 ));
224
224
#elif defined(_Win32 )
225
225
return GetTickCount ();
226
226
#else
227
227
struct timespec t ;
228
228
t .tv_sec = t .tv_nsec = 0 ;
229
229
if (0 == clock_gettime (CLOCK_MONOTONIC , & t )) {
230
- return (uint32_t ) (1000L * t .tv_sec + (t .tv_nsec / 1e6 ));
230
+ return (uint64_t ) (1000L * t .tv_sec + (t .tv_nsec / 1e6 ));
231
231
} else {
232
232
struct timeval now ;
233
233
gettimeofday (& now , NULL );
234
- return (uint32_t ) (1000L * now .tv_sec + (now .tv_usec / 1000.0 ));
234
+ return (uint64_t ) (1000L * now .tv_sec + (now .tv_usec / 1000.0 ));
235
235
}
236
236
#endif
237
237
}
238
238
239
-
You can’t perform that action at this time.
0 commit comments