Sensing and/or controlling current flow is a fundamental requirement in many electronics systems, and the techniques to do so are diverse. Ultimately it is the application that determines the balance of precision and cost. Here’s a good guide to current sense amplifiers:
https://goo.gl/rBZPrV