From: Wolfgang Denk Date: Tue, 03 Apr 2007 14:44:36 +0200 Subject: [U-Boot-Users] Is there a way to get total time passed since boot in U-Boot? In-Reply-To: Your message of "Tue, 03 Apr 2007 00:58:32 PDT." <731794.82779.qm@web8405.mail.in.yahoo.com> Message-ID: <20070403124436.CBACD352676@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <731794.82779.qm@web8405.mail.in.yahoo.com> you wrote: > > I am working on MPC8548 U-Boot. Here, I have a > requirement where I need to get the total number of > millisecs/secs elapsed since the boot (similar to what How do you define "since the boot"? Since power-on? Sinde the HRESET condition ended? Since the CPU was executing the first instruction? > jiffies do in linux). Please let me know if there is a > way to get this in U-Boot code? Read the timebase - I'm not sure if this is what you want, but this is what you can get easily :-) Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "The two most common things in the universe are hydrogen and stupi- dity."