forked from Imagelibrary/rtems
2002-07-01 Joel Sherrill <joel@OARcorp.com>
* src/__times.c: Corrected from previous attempt to cleanup.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2002-07-01 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* src/__times.c: Corrected from previous attempt to cleanup.
|
||||||
|
|
||||||
2002-07-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
2002-07-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
* configure.ac: Remove RTEMS_PROJECT_ROOT.
|
* configure.ac: Remove RTEMS_PROJECT_ROOT.
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ clock_t _times(
|
|||||||
struct tms *ptms
|
struct tms *ptms
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtems_status_code status;
|
|
||||||
rtems_interval ticks;
|
rtems_interval ticks;
|
||||||
|
|
||||||
if ( !ptms ) {
|
if ( !ptms ) {
|
||||||
@@ -35,6 +34,12 @@ clock_t _times(
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This call does not depend on TOD being initialized and can't fail.
|
||||||
|
*/
|
||||||
|
|
||||||
|
(void) rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &ticks );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* RTEMS technically has no notion of system versus user time
|
* RTEMS technically has no notion of system versus user time
|
||||||
* since there is no separation of OS from application tasks.
|
* since there is no separation of OS from application tasks.
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
|
|
||||||
|
2002-07-01 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* src/__times.c: Corrected from previous attempt to cleanup.
|
||||||
|
|
||||||
2002-07-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
2002-07-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
* configure.ac: Remove RTEMS_PROJECT_ROOT.
|
* configure.ac: Remove RTEMS_PROJECT_ROOT.
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ clock_t _times(
|
|||||||
struct tms *ptms
|
struct tms *ptms
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtems_status_code status;
|
|
||||||
rtems_interval ticks;
|
rtems_interval ticks;
|
||||||
|
|
||||||
if ( !ptms ) {
|
if ( !ptms ) {
|
||||||
@@ -35,6 +34,12 @@ clock_t _times(
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This call does not depend on TOD being initialized and can't fail.
|
||||||
|
*/
|
||||||
|
|
||||||
|
(void) rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &ticks );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* RTEMS technically has no notion of system versus user time
|
* RTEMS technically has no notion of system versus user time
|
||||||
* since there is no separation of OS from application tasks.
|
* since there is no separation of OS from application tasks.
|
||||||
|
|||||||
Reference in New Issue
Block a user