Hiya
Well I only just got here.
I assume you mean Discretionary Leave - there's no such thing as description leave. Not yet anyway.
If your application was sent in on time and was successful, then the time that your case was in the Home Office would count as legal residence.