#include <kernel/time.h>
#include <kernel/types.h>
Go to the source code of this file.
|
|
#define | HZ CLOCK_PER_SECOND |
| | The frequency used for the timer (in Hz)
|
| |
|
|
#define | SEC_TO_TICKS(_time) SEC((_time) * HZ) |
| | Compute the number of ticks in a given time frame.
|
| |
|
#define | MS_TO_TICKS(_time) MS_TO_SEC(SEC_TO_TICKS(_time)) |
| | Compute the number of ticks in a given time frame.
|
| |
|
#define | US_TO_TICKS(_time) US_TO_SEC(SEC_TO_TICKS(_time)) |
| | Compute the number of ticks in a given time frame.
|
| |
|
#define | NS_TO_TICKS(_time) NS_TO_SEC(SEC_TO_TICKS(_time)) |
| | Compute the number of ticks in a given time frame.
|
| |
|
|
#define | TICKS_TO_SEC(_ticks) SEC((_ticks) / HZ) |
| | Convert a number of ticks into a regular time unit.
|
| |
|
#define | TICKS_TO_MS(_ticks) MS(TICKS_TO_SEC(_ticks)) |
| | Convert a number of ticks into a regular time unit.
|
| |
|
#define | TICKS_TO_US(_ticks) US(TICKS_TO_SEC(_ticks)) |
| | Convert a number of ticks into a regular time unit.
|
| |
|
#define | TICKS_TO_NS(_ticks) NS(TICKS_TO_SEC(_ticks)) |
| | Convert a number of ticks into a regular time unit.
|
| |
|
| volatile clock_t | timer_ticks_counter |
| | This is where we keep track of the number of intervals reported by the timer. More...
|
| |
|
volatile u32 | timer_kernel_frequency |
| | Frequency of the global timekeeping timer.
|
| |