time definition

26 Nov 2012

Hello Have somboady i file where i can set the time an after this the time run (CPU-time)?

Thanks for reply

27 Nov 2012

Difficult to understand what you are asking, do you mean something like this:

http://mbed.org/handbook/Timer

Timer timer;
timer.start();
// stuff you want to time
timer.stop();
printf("Job took %d ms\r\n",timer.read_ms());

Or did you mean something else? Maybe CPU time per thread?

Ashley

27 Nov 2012

Difficult to understand what you are asking, do you mean something like this:

http://mbed.org/handbook/Timer

Timer timer;
timer.start();
// stuff you want to time
timer.stop();
printf("Job took %d ms\r\n",timer.read_ms());

Or did you mean something else? Maybe CPU time per thread?

Ashley

29 Nov 2012

Sorry my english isnt the best. I want the CPU time for to show the year the mounth the day the hour and the minuts. But the stopp helps me too.

30 Nov 2012

OK, the expression "CPU time" has a very specific meaning in computer science:

http://en.wikipedia.org/wiki/CPU_time

The stuff in my previous post would be a crude estimate of CPU time since it doesn't account for IO.

If you just want to get the actual time from the real time clock (RTC), then take a look at this:

http://mbed.org/blog/entry/103/

Cheers

Ashley

13 Dec 2012
02 Dec 2012
12 Dec 2012

Thanks for your help.

Now the time run.

wath should I do if i want to show like this: "Sun 2 Dec 2012" Then a new row "13:47:30"

Becaus my LCD is 2x16 large

And how can i make that i can correct the time perhaps for 5 secounds. And how can i set an alarmclock witch do all day give an alarm on the same time?

Thanks for reply

14 Dec 2012

Hmm,

I think the best thing for you would be to try and work it out yourself.

If I tell you how to do it, I don't think I'm really helping you out at all in this instance.