According to my manual page on clock it says.
How to display wall clock time c.
Learn how to display digital clock in c programming language.
Touch and hold any empty section of a home screen.
Posix requires that clocks per sec equals 1000000 independent of the actual resolution.
Add a clock widget touch and hold any empty section of a home screen.
You can see the time on your home screens by adding a widget from the clock app.
On a 32 bit system where clocks per sec equals 1000000 this function will return the same value approximately every 72 minutes.
It is defined in sys time h header file and takes two arguments the first arugment is reference to the timevalstructure and the second argument is a null pointer.
The time h header file defines two macro four variable types and various other functions for manipulating time and date.
To get the number of seconds used by the cpu you will need to divide by clocks per sec.
At the bottom of the screen tap widgets.
At the bottom of the screen tap widgets.
The gettimeofday function returns the wall clock time elapsed since the epoch and store it in the timevalstructure expressed as seconds and microseconds.
This c program makes use of a system library file which has its header as time h.
You can see the time on your home screens by adding a widget from the clock app.