In SH4 it was represented by the sound file "Passing thermal layer", I believe.
In one of my SH5 videos, the beta still had that sound file in the game. Since U-boats were unable to know when and if they were passing a TL, I removed the sound file before making the video. Thankfully, the dev team also removed it before the game was released.