Effect of the surface-modifying macromolecules on the duration of the surface functionalization