MINOR: clock: make global_now_ns a pointer as well

Similar to previous commit but for global_now_ns
This commit is contained in:
Aurelien DARRAGON
2025-06-26 12:58:07 +02:00
parent 4a20b3835a
commit 14966c856b
2 changed files with 15 additions and 12 deletions

View File

@@ -28,7 +28,7 @@
extern struct timeval start_date; /* the process's start date in wall-clock time */
extern struct timeval ready_date; /* date when the process was considered ready */
extern ullong start_time_ns; /* the process's start date in internal monotonic time (ns) */
extern volatile ullong global_now_ns; /* common monotonic date between all threads, in ns (wraps every 585 yr) */
extern volatile ullong *global_now_ns;/* common monotonic date between all threads, in ns (wraps every 585 yr) */
extern THREAD_LOCAL ullong now_ns; /* internal monotonic date derived from real clock, in ns (wraps every 585 yr) */
extern THREAD_LOCAL struct timeval date; /* the real current date (wall-clock time) */