Use the LibTask getTaskActiveTime() method