When you are creating a Task linked to a Backlog item or a Bug, the field Remaining work is actually in hours. So you can set this to have kind of a time tracking.
Unfortunately, there is no way to set the actual time the task took after it is finished, as far as I know.