Re: Eu time() in C?
- Posted by Martin Stachon <martin.stachon at worldonline.cz> Sep 26, 2002
- 486 views
Thanks, Rob. I am still confused with the C types... Martin > Try instead: > > > double time_(void) > > { > > return clock()/(double)CLOCKS_PER_SEC; > > }; > > That will give you a floating-point result. > Your routine will give a result rounded down > to an integer number of seconds.