time.c File Reference

#include <stdint.h>
#include "time.h"
#include "avr/interrupt.h"
#include "dispatcher.h"

Include dependency graph for time.c:

Go to the source code of this file.

Variables

uint32_t clock
 Time in seconds since 0 hours, 0 minutes, 0 seconds, January 1st, 1970, UTC.
uint8_t mclock
 Miliseconds of clock with a precision of 1/256s.
uint32_t tickcount
 Time in seconds since system start.


Variable Documentation

uint32_t clock

Time in seconds since 0 hours, 0 minutes, 0 seconds, January 1st, 1970, UTC.

As the clock is being set it's value may be increased or decreased and is therefor not usable for linear time measurement. Use the below tickcount variable for that.

Definition at line 40 of file time.c.

uint8_t mclock

Miliseconds of clock with a precision of 1/256s.

Definition at line 43 of file time.c.

uint32_t tickcount

Time in seconds since system start.

Use this value for timeout measurement as it will always be increased linearly.

Definition at line 47 of file time.c.


Generated on Thu Jul 10 01:10:08 2008 for NIP by  doxygen 1.5.5