Sorry that this is a bit blunt:
If you had an idea about the [tt]time[/tt] function,
datapath, why ask the question you did. I looked at the documentation and found this:
__________________________________________________________
time
Gets the system time.
Code:
time_t time( time_t *timer );
Routine: [tt]time[/tt]
Required Header: [tt]<time.h>[/tt]
Compatibility: ANSI, Win 95, Win NT
Return Value
[tt]time[/tt] returns the time in elapsed seconds. There is no error return.
Parameter
[tt]timer[/tt] -- Storage location for time
Remarks
The [tt]time[/tt] function returns the number of seconds elapsed since midnight (00:00:00), January 1, 1970, coordinated universal time, according to the system clock. The return value is stored in the location given by [tt]timer[/tt]. This parameter may be [tt]NULL[/tt], in which case the return value is not stored.
__________________________________________________________
Seems it does exactly what you want.
________________________________________
Roger J Coult; Grimsby, UK
In the game of life the dice have an odd number of sides.