How to setup a timer in a python script?

Forget my previous answer, this is way better Problems using python with Editor in UE4 - #5 by HenryMa96 (as it also point out an issue with my last answer and it also provide a nice link to python doc)