struct to compute time between two calls of function
Fini timer