Use a resource time value instead of fixed value

Signed-off-by: Jorge Ruesga <jorge@ruesga.com>