worth one's while
Merit one's time or efforts, as in It's hardly worth your while to count the transactions; it can be done by computer. [Late 1600s]
make something worth one's while. Compensate one for one's time or efforts, as in If you take care of our yard while we're away, I'll make it worth your while. [Mid-1800s] Both usages employ while in the sense of "a period of time spent."