What is uses of long\_query\_time?

i want to improve performance, so i change long\_query\_time= 10 to 5,
what exactly it will do?
if my query takes more than 5 seconds to retrieve records from db is there any problem or not