Need help with adxl335 for measuring displacement

the car needs to run 5 hours continous on a dirt track so problem is enduring that
i got the concept though ill try coming up with some way
thanks:)