Antonio:

 

sys/time.h is POSIX specific, but TinyOS is not a POSIX compliant OS, so
this will not work.

 

You can have microsecond-precision counters, though. What platform are
you using? What is it exactly that you want to achieve?

 

Janos

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
antonio gonga
Sent: Tuesday, April 22, 2008 12:20 PM
To: TINYOS
Subject: [Tinyos-help] Struct_Timeval_Unix_in_Tinyos

 

Hey all,
 
I would like to use a more precise timer, I was trying to make a C
function and to embed it in a nesC code, but the problem is that it
Tinyos  does not reconize the include #include<sys/time.h>.  I needed it
because I'd like to use the "struct timeval" to get time precision in
micro seconds.
 
If someone have already tried it, please attach me your code in the
reply.
 
Thanks in advance.
 
Antonio




________________________________

Invite your mail contacts to join your friends list with Windows Live
Spaces. It's easy! Try it!
<http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.
aspx&mkt=en-us> 

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to