How do you snyc 2 cameras when shooting the same event?

Is this something that is done during the filming or can it be done in editing?

Thanks!