title: unable to link to gettimeofday on embedded system, elapsed time suggestions?
body: <p>I am trying to use gettimeofday on an embedded ARM device, however it seems as though I am unable to use it:</p>
  
  <pre><code>gnychis@ubuntu:~/Documents/coexisyst/econotag_firmware$ make
  Building for board: redbee-econotag
         CC obj_redbee-econotag/econotag_coexisyst_firmware.o
  LINK (romvars) econotag_coexisyst_firmware_redbee-econotag.elf
  /home/gnychis/Documents/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none- eabi/4.3.2/../../../../arm-none-eabi/lib/libc.a(lib_a-gettimeofdayr.o): In function `_gettimeofday_r':
  gettimeofdayr.c:(.text+0x1c): undefined reference to `_gettimeofday'
  /home/gnychis/Documents/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-eabi/4.3.2/../../../../arm-none-eabi/lib/libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
  sbrkr.c:(.text+0x18): undefined reference to `_sbrk'
  collect2: ld returned 1 exit status
  make[1]: *** [econotag_coexisyst_firmware_redbee-econotag.elf] Error 1
  make: *** [mc1322x-default] Error 2
  </code></pre>
  
  <p>I am assuming I cannot use gettimeofday() ?  Does anyone have any suggestions for being able to tell elapsed time? (e.g., 100ms)</p>