It depends..... The ubiquitous poker answer. Usually I set a time limit. Say after 8 hours of play I evaluate my play, my hourly rate, my table, my villains and how I'm feeling. I am not a marathoner. Unless Im still feeling real good I usually quit after 8-10 hours of live play and online I usually quit after 6.
The other night I was at the Commerce playing the 200nl. They only allow a 40 dollar initial buy-in. I had been playing for 7 hours and had 600 in front of me. Me and one other guy were killing the table. At midnight the other big stack left and within an hour the table was 4 handed. I was still feeling good so I kept playing and continued to grow my stack. At 2am (almost 9 hours of play) three guys sat down looking fresh as ever and started talking lots of smack. They were playing hyper aggressive. I had to tighten and get real paitent. I played 2 pots in 40 minutes, won one, lost one and left.
Maybe I shouldv'e stayed, i felt I was a better player but was too damn tired.
Hard and fast rules like a profit/loss limit work great theoretically but I cant see myself leaving after making my profit mark and some juicy player sits down. IT DEPENDS.
I have found that it is more beneficial to evaluate the game I am in (+ or - EV) and how I feel my play is going opposed to a static number limitation of hours played or money won/loss.