mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Cosmetic change...
This commit is contained in:
parent
bc46e8a49e
commit
9399718ede
@ -30,13 +30,14 @@
|
||||
*
|
||||
* Author: Oliver Schmidt <ol.sc@web.de>
|
||||
*
|
||||
* $Id: clock.c,v 1.1 2007/05/29 21:56:22 oliverschmidt Exp $
|
||||
* $Id: clock.c,v 1.2 2007/05/29 22:25:49 oliverschmidt Exp $
|
||||
*/
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#include "contiki.h"
|
||||
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
clock_time_t
|
||||
clock_time(void)
|
||||
{
|
||||
@ -49,7 +50,7 @@ clock_time(void)
|
||||
* needs to be defined at least as 2.
|
||||
* The value 2 works out especially nicely as it allows us to implement the
|
||||
* clock frequency devider below purely in (32 bit) integer arithmetic based
|
||||
* on the educated guess of CLK_TCK being an even value.
|
||||
*/
|
||||
* on the educated guess of CLK_TCK being an even value. */
|
||||
return clock() / (CLK_TCK / CLOCK_CONF_SECOND);
|
||||
}
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
|
Loading…
Reference in New Issue
Block a user