How to time my function in linux ?