lib: update the time module to the light FFI