It depends on how much was consumed and the route of administration.
consumed via smoking
will not last as long as that consumed orally (in food). Smoked it could last a couple hours or more (depending on quantity). Eaten it will take longer to take effect, but can last many hours.