I spent quite a long time to understand everything.
2020년 3월 13일
0
2
0
(it) took me a while = (the task) required time (significantly long time)
to get it all figured out. = to understand, or sometimes to work out how to make things work (does not alway mean understanding, but sometimes just capability to function)
2020년 3월 13일
0
0
0
I got it now.
2020년 3월 13일
0
0
0
It depends on the context, but I'd say : I spent quite a long time to understand everything.