title: How to get appropriate timestamp in c for logs?
body: <p>I'm creating a client-server application. I want to do some logging.</p>
  
  <p>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.</p>