Go to the source code of this file.
Data Structures | |
| struct | hr_time |
| timer structure More... | |
Functions | |
| unsigned long | hardclock (void) |
| Return the CPU cycle counter value. | |
| unsigned long | set_timer (struct hr_time *val, int reset) |
| Return the elapsed time in milliseconds. | |
| void | set_alarm (int seconds) |
| Setup an alarm clock. | |
Variables | |
| int | alarmed |
Definition in file timing.h.
| unsigned long hardclock | ( | void | ) |
| void set_alarm | ( | int | seconds | ) |
Setup an alarm clock.
| seconds | delay before the "alarmed" flag is set |
Definition at line 230 of file timing.c.
References sighandler().
Referenced by main().
Return the elapsed time in milliseconds.
| val | points to a timer structure | |
| reset | if set to 1, the timer is restarted |
Definition at line 204 of file timing.c.
References _hr_time::start.
1.5.4