diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-20 10:55:36 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-20 11:06:13 +0100 |
commit | 77ac1519e863b7095f69c976353f7647c6f6f63b (patch) | |
tree | dae63260f998c0afcbced1394496d6d3df1547fb /cpukit/include/t.h | |
parent | libtest: Fix use of T_check_true() (diff) | |
download | rtems-77ac1519e863b7095f69c976353f7647c6f6f63b.tar.bz2 |
libtest: Use test configuration in T_now()
Use the user provided now handler of the test configuration to get the
time in T_now().
Diffstat (limited to 'cpukit/include/t.h')
-rw-r--r-- | cpukit/include/t.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/cpukit/include/t.h b/cpukit/include/t.h index ec806a1f68..12a03b2a1c 100644 --- a/cpukit/include/t.h +++ b/cpukit/include/t.h @@ -2146,29 +2146,23 @@ T_time T_seconds_and_nanoseconds_to_time(uint32_t, uint32_t); void T_time_to_seconds_and_nanoseconds(T_time, uint32_t *, uint32_t *); -#ifdef __rtems__ -int64_t _Timecounter_Sbinuptime(void); - -static inline T_time -T_now(void) -{ - return (T_time)_Timecounter_Sbinuptime(); -} +T_time T_now(void); +#ifdef __rtems__ static inline T_ticks T_tick(void) { return _CPU_Counter_read(); } #else -T_time T_now(void); - T_ticks T_tick(void); #endif +T_time T_now_clock(void); + T_time T_now_dummy(void); -T_time T_now_via_tick(void); +T_time T_now_tick(void); T_time T_case_begin_time(void); |