A weight, a spring, and a little needle attached to the weight. Something to damp out the weight (stop it bobbing up and down) is a good idea too.
I came across a test pilot the other day who used a fish-balance and a bag of lead shot because the aircraft didn't have a g-meter and he only needed the instrument for one flight.
G