Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:22

0001 /**
0002  * @file
0003  *
0004  * @ingroup RTEMSImplClassicClock
0005  *
0006  * @brief This source file contains the implementation of
0007  *   rtems_clock_get_uptime_seconds().
0008  */
0009 
0010 /*
0011  * Copyright (c) 2018 embedded brains GmbH & Co. KG
0012  *
0013  * The license and distribution terms for this file may be
0014  * found in the file LICENSE in this distribution or at
0015  * http://www.rtems.com/license/LICENSE.
0016  */
0017 
0018 #ifdef HAVE_CONFIG_H
0019 #include "config.h"
0020 #endif
0021 
0022 #include <rtems/rtems/clock.h>
0023 #include <rtems/score/timecounter.h>
0024 
0025 time_t rtems_clock_get_uptime_seconds( void )
0026 {
0027   return _Timecounter_Time_uptime - 1;
0028 }