This blog describes how to enable the timestamp on the nRF5 SDK log module.
For example, it is the example to get the timestamp with log for the BLE scanning.
You need to enable sdk_config.h.
Enable the NRF_LOG_USERS_TIMESTAMP in this case.
Also, you need to create the additional app_timer and start it.