microsoft / snmalloc

Message passing based allocator
MIT License
1.58k stars 109 forks source link

avoid chrono inclusion when clock_gettime is available #695

Closed SchrodingerZhu closed 18 hours ago

SchrodingerZhu commented 3 days ago

Avoid pulling in non freestanding chrono dependency if we can use clock_gettime.

SchrodingerZhu commented 3 days ago

FYI, I did not use timespec_get because we do not have the control of monotonicity.