Caffeine can have a lasting effect of up to six hours