File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -358,13 +358,18 @@ fd_log_group_id_query( ulong group_id ) {
358
358
/* WALLCLOCK APIS *****************************************************/
359
359
360
360
long
361
- _fd_log_wallclock ( void const * _ ) {
362
- (void )_ ;
361
+ fd_log_wallclock ( void ) {
363
362
struct timespec ts [1 ];
364
363
clock_gettime ( CLOCK_REALTIME , ts );
365
364
return ((long )1e9 )* ((long )ts -> tv_sec ) + (long )ts -> tv_nsec ;
366
365
}
367
366
367
+ long
368
+ _fd_log_wallclock ( void const * _ ) {
369
+ (void )_ ;
370
+ return fd_log_wallclock ();
371
+ }
372
+
368
373
char *
369
374
fd_log_wallclock_cstr ( long now ,
370
375
char * buf ) {
Original file line number Diff line number Diff line change @@ -508,7 +508,7 @@ extern ulong const fd_log_build_info_sz; /* == strlen( fd_log_build_info ) + 1UL
508
508
involve system calls under the hood and is much slower than, say,
509
509
RTSDC. */
510
510
511
- #define fd_log_wallclock () _fd_log_wallclock( NULL )
511
+ long fd_log_wallclock ( void );
512
512
long _fd_log_wallclock ( void const * _ ); /* fd_clock_func_t compat */
513
513
514
514
/* fd_log_wallclock_cstr( t, buf ) pretty prints the wallclock
You can’t perform that action at this time.
0 commit comments