Total internal reflection of x-rays is used to determine the thickness of thin films.
Slight above the critical angle of total reflection fringes show up in the angular dependence of the x-ray reflectivity. They are called Kiessig fringes and are used to determine the film thickness.
These fringes are already known to you via the papers of Parrat(1954) and Henke (1972).
In the following link there is a nice collection of formulars dealing with the optical constants involved with x-ray reflection and refraction: