Mercurial > templog
comparison network/test.c @ 107:56d09a0969b5 avr-http
Import uIP and the PPP implementation from
https://code.google.com/p/avrusbmodem/
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 07 Sep 2012 23:53:53 +0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
106:5c8404549cc0 | 107:56d09a0969b5 |
---|---|
1 #include <sys/time.h> | |
2 #include "uip.h" | |
3 #include "clock.h" | |
4 | |
5 // clock.c | |
6 clock_time_t | |
7 clock_time(void) | |
8 { | |
9 struct timeval tv; | |
10 gettimeofday(&tv, NULL); | |
11 | |
12 return tv.tv_sec % 65536; | |
13 } | |
14 | |
15 int main(int argc, char ** argv) | |
16 { | |
17 return 0; | |
18 } |