cmake: move nanosecond detection to a module Move the nanosecond detection in time structures to its own module.