Pulse duration of seeded free-electron lasers