return the amount of seconds elapsed in clock_seconds()

This commit is contained in:
nvt-se 2009-09-04 13:57:17 +00:00
parent cd96248306
commit fed4a58102
1 changed files with 3 additions and 2 deletions

View File

@ -26,9 +26,10 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: clock.c,v 1.2 2009/03/26 16:22:37 fros4943 Exp $
* $Id: clock.c,v 1.3 2009/09/04 13:57:17 nvt-se Exp $
*/
#include "contiki-conf.h"
#include "sys/clock.h"
#include "lib/simEnvChange.h"
@ -52,7 +53,7 @@ clock_time(void)
unsigned long
clock_seconds(void)
{
return 0;
return simCurrentTime / CLOCK_CONF_SECONDS;
}
/*-----------------------------------------------------------------------------------*/
void