Example:
To kill time, they sang and played cards. ?
They kill time by singing and playing cards.
She just dropped in. ?
She dropped in just to kill time.