SetStartStatus(); $startTime = time(); $fHelper->GetApiWalletJournal(1, $config['primary']); $endTime = time(); printf("Updating the wallets took " . ($endTime - $startTime) . " seconds.\r\n"); //Set the task as stopped $task->SetStopStatus(); return 0; } }