commit | 62d51e8ffe1f0e93bb2aff7f55a62338ca93d0c3 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Fri Sep 28 08:56:36 2012 +0000 |
committer | Anatolij Gustschin <agust@denx.de> | Tue Oct 02 22:39:33 2012 +0200 |
tree | d5a702bad60fa293a9fe6275b75bed8147979263 | |
parent | 7f7df68187f963d017353043d11c89037e641b83 [diff] |
bootstage: Add time accumulation feature Sometimes we want to add up the amount of time spent in a particular activity when it is happening in a number of discrete chunks. Add bootstage_start() to mark the start of an acitivity and bootstage_accum() to accumulate the time since the last start. Calling these function in pairs results in the accumulated time being collected. Signed-off-by: Simon Glass <sjg@chromium.org>