This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to print out the time stamp in nRF log

Currently developing on NRF52 sdk12

I want to be able to show time stamp minutes:seconds:miliseconds on my RTT viewer, when I print my data out from the uC. Any hits on how to do that?

I'm looking at the Nordic infocenter on the nRF Log Module, and it seems like that I have to initiate the time stamp function by passing a parameter in the init function below:

ret_code_t nrf_log_init	(	nrf_log_timestamp_func_t 	timestamp_func	)	

Currently, in my source code, I have the parameter set be NULL. So, what do I replace the NULL with in order to print out time stamp?

if someone could write out an example on how to use the timestamp function in NRF log module, then it would be great.

Thank you all for your time.

Related