view 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
line wrap: on
line source

#include <sys/time.h>
#include "uip.h"
#include "clock.h"

// clock.c
clock_time_t 
clock_time(void)
{
    struct timeval tv;
    gettimeofday(&tv, NULL);
    
    return tv.tv_sec % 65536;
}

int main(int argc, char ** argv)
{
    return 0;
}