How is energy use determined?

Usually we use a mechanical or electrical meter. Gas supplies can simply drive round a counter. Electricity can be measured in several ways, for instance by using part of it to turn a disc which in turn drives a counter. Essentially we measure how much power we use and for how long. The unit is usually kilowatt-hours.