Specifications
settimeofday()
Prototype
int settimeofday (const struct timeval *t,
const struct timezone *tz)
Commonly Called By
C/C++ programs
Thread-safe
No.
Available from ISR
Yes.
Include
<sys/time.h>
Description
If the settimeofday() function is called concurrently with a call to gettimeofday(), the value returned
by gettimeofday() is unreliable.
Return
The return value is zero on success. If no system clock is available, the return value is -1, and errno is set
to ENOSYS.
Related Information
• alt_alarm_start() on page 14-10
• alt_alarm_stop() on page 14-11
• alt_nticks() on page 14-46
• alt_sysclk_init() on page 14-65
• alt_tick() on page 14-48
• alt_ticks_per_second() on page 14-49
• gettimeofday() on page 14-72
• times() on page 14-67
• usleep() on page 14-70
wait()
Prototype
int wait(int *status)
NII5V2
2015.05.14
settimeofday()
14-61
HAL API Reference
Altera Corporation
Send Feedback