Enhancing the time resolution of an EBT system via the primary electron pulse shape measurement