Does Anki take into account the average and total times for each card when scheduling?
No. See #5 Frequently asked questions about FSRS - Anki FAQs.
(same for SM-2, btw)
Q5: Does FSRS take into account the amount of time that I spend reviewing a card?
A5: No, FSRS only uses interval lengths and grades. However, the amount of time you spend on reviews is used when calculating optimal retention using the “Compute minimum recommended retention” feature.
What’s the “Compute minimum recommended retention” feature? It don’t see it under the FSRS § of the Options dialog box.
That feature was removed because it no longer gave useful feedback with FSRS-6. We’ll have to update the FAQ.