Execution of an oil pressure measurement

Hello ! I have a general question and would like to know how to carry out an oil pressure measurement with a vehicle with petrol engine. How and what exactly must be measured for this? Is the procedure for diesel and petrol engines the same? I drive a VW Golf 3 with year 1997. Just ahead: I have no problems with the car, it would interest me only out of purely technical knowledge desire, how to carry out such a measurement. Thank you very much! Greetz Maik