Device for measuring parameters of shock pulse