Pause when minimize

Good morning, I have been using inkscape, I would like to know if it is possible for me to count exactly the time of use in an application and when I minimize it, it pauses this time, when I resume working on it, it returns to the account. Thanks.