Hey Saurabh, That really worked yaar! thanks for the needful! Regards, Ricardo Slafford sanjeevgopinath.blogspot.com
On Mon, Jun 1, 2009 at 12:29 AM, Tyler Littlefield <[email protected]> wrote: > time prog if your on linux... Just use the time command, then the program > name. time ./myprog. When the program is done running, it'll show you the > output > > > Thanks, > Tyler Littlefield > Web: tysdomain.com > email: [email protected] > My programs don't have bugs, they're called randomly added features. > > ----- Original Message ----- > From: "Saurabh Jain" <[email protected]> > To: <[email protected]> > Sent: Sunday, May 31, 2009 12:56 PM > Subject: [c-prog] Re: Finding the time taken by our C/C++ program > > > --- In [email protected], "sanjeevgopin...@..." <sanjeevsinc...@...> > wrote: >> >> Hello there! >> >> Can someone suggest me how to find out the the time taken by our C/C++ >> program to run..! Many of the online judges such as spoj.pl come up saying >> runtime exceeded and stuff! How can we find out the time taken by >> ourselves!??? > > check out ctime.h > http://www.cplusplus.com/reference/clibrary/ctime/ > > Hope it helps... > ~Saurabh > > > > > ------------------------------------ > > To unsubscribe, send a blank message to > <mailto:[email protected]>.Yahoo! Groups Links > > > >
