Before. It was just before he left for college, as he was talking to Mikaela on the cell phone. This was right at the beginning of the movie, before the Decepticons manage to learn where Megatron's body and the All-spark shard were located.