Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Timer in Linux

__/ [munish.nr@xxxxxxxxx] on Wednesday 16 November 2005 08:55 \__

> Hi,
> 
> I am looking to implement couple of timers in my application will u
> anybody please help me how to implement that.
> any help is highly appreciated.
> 
> thanks in advance,
> Munish Nayyar

At a centre of it all, you probably want to make use of a universal function:

man date

You can print out just the time, putting aside all the rest of them elements
(depending on timer scale). Proceed to processing the strings, converting
them to integers and doing some computation based on simple arithmetic.
Dealing with hours, minutes and seconds might be trickier than it first
seems, so I would urge you to re-use something. That type of timer must have
been implemented a huge number of time already, so...

http://www.justfuckinggoogleit.com/

Hope it helps,

Roy

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index