I'm creating a client-server application. I want to do some logging.
Server is in C. Now I'm print messages to the terminal. So I'll probably just copy that to sprintf and add timestamp.
How can I do that timestamp?
It should probably include date, hours, minutes, seconds.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…