diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-09-30 08:25:55 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-09-30 10:44:15 +0200 |
commit | 96cae61eba199b9c3f5451f293cf60db2b535164 (patch) | |
tree | 24ed8bc33743dbac1a95937b855f11f5b633d3f8 /include/clock.h | |
parent | b1536a3298e25dfdd0136c0fc8d68d2a12cff63c (diff) | |
download | barebox-96cae61eba199b9c3f5451f293cf60db2b535164.tar.gz barebox-96cae61eba199b9c3f5451f293cf60db2b535164.tar.xz |
clock: Add a variable with the first timestamp after startup
For measuring the startup time it's useful to save the first
timestamp after the clocksource has been registered.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/clock.h')
-rw-r--r-- | include/clock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clock.h b/include/clock.h index a169790d0f..691befc2e2 100644 --- a/include/clock.h +++ b/include/clock.h @@ -43,6 +43,8 @@ void mdelay(unsigned long msecs); #define MSECOND ((uint64_t)(1000 * 1000)) #define USECOND ((uint64_t)(1000)) +extern uint64_t time_beginning; + /* * Convenience wrapper to implement a typical polling loop with * timeout. returns 0 if the condition became true within the |