linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* displaying time_t values
@ 2005-10-22 23:27 fabio
  2005-10-23 10:07 ` Michael Iatrou
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: fabio @ 2005-10-22 23:27 UTC (permalink / raw)
  To: linux-c-programming

hello,

I would like to know how to display the full seconds and miliseconds 
transacurrent since 2 points in a program.

main()
{
    time_t t1_t2;
    (void)time(&t1);
    cpu_intensive_function();
    (void)time(&t2);
    printf("the full time spent in the process is:");
    // how should i display it ? ej: 51,56745 seconds ot 1024,04546 seconds

}

Thanks,

fabolo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-24 11:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-22 23:27 displaying time_t values fabio
2005-10-23 10:07 ` Michael Iatrou
2005-10-24  7:06 ` kaushal
2005-10-24 11:11 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).