10 lines
151 B
C
10 lines
151 B
C
|
#include <time.h>
|
||
|
#include <sys/ksys.h>
|
||
|
|
||
|
time_t time (time_t* timer)
|
||
|
{
|
||
|
time_t t = mktime(localtime(0));
|
||
|
if (timer) *timer = t;
|
||
|
return t;
|
||
|
}
|