Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
It's not a exact answer but time, gettime and fopen is depend on
your system.
For your reference, here is small information for time() from P@CC.
I hope it can be useful for you.
Good luck.
:roll:
TIME
Synopsis
#include <time.h>
time_t time (time_t * t)
Description
This function is not provided as it is dependant on the target
system supplying the current time. This function will be user implemented.
When implemented, this function should return the current time in seconds
since 00:00:00 on Jan 1, 1970. If the argument t is not equal to NULL ,
the same value is stored into the object pointed to by t .
Example
#include <stdio.h>
#include <time.h>
void main (void)
{
time_t clock;
time(&clock);
printf(" s", ctime(&clock));
}
See Also
ctime(), gmtime(), localtime(), asctime()
Return Value
This routine when implemented will return the current time in
seconds since 00:00:00 on Jan 1, 1970.
Note
The time() routine is not supplied, if required the user will
have to implement this routine to the specifications outlined above.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.