Just keep sure that your system time is getting syncronized by a timeservice.
Both, windows and linux can do this easily. Then just use the Format or the GetTime() function like pheadxdll said.
Why reinvent the wheel ? Download smlib with over 350 useful functions.
When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0