Timer
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
#include <sys/time.h>
#include <stdio.h>
int main(void)
{
time_t sec;
time_t ret;
time_t timestamp = 1609459200;
ret = time(&sec);
if(ret != sec)
{
return -1;
}
if(ret != timestamp)
{
return -1;
}
return 0;
}copymistakeCopy Success