You can stand at a standing desk for as long as you feel comfortable doing so. For the best possible results you should pair a standing desk with a proper ergonomic mat for standing desks and also a standing desk chair for the times you want to rest your legs.