The ‘now.h’ file provides some simple time measurement routines. It is not included in ‘nana.h’ so you must include this file separately.
It uses the ‘gettimeofday’ system call and has an accuracy of between 1us and 10ms depending on the operating system and hardware configuration.
See the IPM package if you require better measurement tools.1
Returns the time in seconds since the beginning of time as defined by your system. If you call ‘now_reset’ the time will start again at 0.