Changed nanotime() to clock_nanotime()

Signed-off-by: Jacky Boen <aqiank@gmail.com>