this prints the time

Code:
 
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(void)
{
  time_t now;
  time(&now);

  printf("%s", ctime(&now));

  return EXIT_SUCCESS;
}
but it doesnt keep up. So i would like some hints on how to keep the time going. if all possible.