Mysteries running time

Does compilation time also added in total running time for evaluation on codechef? A solution which was giving TLE got accepted when I removed all the templates and unnecessary libraries. I don’t understand this strange behaviour .
TLE code:CodeChef: Practical coding for everyone
ACCEPTED:CodeChef: Practical coding for everyone