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:Solution: 56702299 | CodeChef
ACCEPTED:Solution: 56707184 | CodeChef