I may be wrong, but I believe "ten years time" is correct. The apostrophe indicates a possessive of the plural form.
Example: Dog's breakfast: sniadanie psa (jednego)
Dogs' breakfasts: sniadania psow (wielu)
Since in the phrase is meant to express duration (a period lasting ten years), the apostrophe is incorrect. Putting the apostrophe would mean that the "time" belongs to "ten years", which is nonsensical.
Be that as it may, I consider "XXX years time", or "XXX days time", an inelegant expression due to the redundancy: year , days, whatever, IS time. Better to say: in ten years, over 10 years, or over a period of 10 years, and forget about the "time".