The most appropriate length of time to wear compression sleeves depends on the type of sleeve and exercise you’re performing.
For regular workout use, compression sleeves can be worn during and inbetween sets with little issue. If you’re wearing them for pain relief or following injury then you may need to use them for several hours. Make sure to also consider the material thickness and type, with thicker knee sleeves being harder to wear for longer periods.