SimAVR
AVR Simulator
sim_time.h File Reference
#include "sim_avr.h"
Include dependency graph for sim_time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static avr_cycle_count_t avr_usec_to_cycles (struct avr_t *avr, uint32_t usec)
 Converts a number of usec to a number of machine cycles, at current speed. More...
 
static uint32_t avr_cycles_to_usec (struct avr_t *avr, avr_cycle_count_t cycles)
 Converts back a number of cycles to usecs (for usleep) More...
 
static uint64_t avr_cycles_to_nsec (struct avr_t *avr, avr_cycle_count_t cycles)
 Converts back a number of cycles to nsecs. More...
 
static avr_cycle_count_t avr_hz_to_cycles (avr_t *avr, uint32_t hz)
 Converts a number of hz (to megahertz etc) to a number of cycle. More...