I'm not trying to print the elapsed time though, I just want the system time to print to the file every 5 minutes.
Type: Posts; User: kl3pt0.2256
I'm not trying to print the elapsed time though, I just want the system time to print to the file every 5 minutes.
I'm currently using the following code to print the current system time to a file:
FILE *file;
time_t ltime;
...
The thing is though, I'm using time() for the timestamp, and in order to do that, I need to have the asctime(localtime(<ime)), so how do I create the asctime() function. Am I able to do it like...
Hello everyone, I have been trying to figure out how to write the current system time to a file. I came across this code:
int main()
{
time_t ltime;
ltime=time(NULL);...