can I use this expression as follows, please?
I took stock of the situation and decided that it was time to leave.
It's OK. This one is more common:
Ex: Sizing up the situation, I decided that it was time to leave.