i need some help here...

im tryin to make a program that simulates traffic lights at an intsection, using a some sort of time function from borland C++ like sleep() or somethin on those lines. basically what im tryin to do is have a text display sayin when the one side turns green, then yellow, then red, then left turn singal, then green again. (and i need this fer both sides of traffic) im am totally lost on how to do it. so what i want is a text program that tells when the light changes (on both sides). i would really really appreciate any assiastance as soon as possble thx.