Fixed os_gettime_ns to provide correct time in ns