From: <tks...@us...> - 2008-03-09 18:39:57
|
Revision: 2941 http://hugin.svn.sourceforge.net/hugin/?rev=2941&view=rev Author: tksharpless Date: 2008-03-09 11:39:54 -0700 (Sun, 09 Mar 2008) Log Message: ----------- APSCpp/APSCpp_main.c replace <ctime> with <time.h>; fix Time_t casting error. Modified Paths: -------------- autopano-sift-C/trunk/APSCpp/APSCpp_main.c Modified: autopano-sift-C/trunk/APSCpp/APSCpp_main.c =================================================================== --- autopano-sift-C/trunk/APSCpp/APSCpp_main.c 2008-03-09 18:36:16 UTC (rev 2940) +++ autopano-sift-C/trunk/APSCpp/APSCpp_main.c 2008-03-09 18:39:54 UTC (rev 2941) @@ -44,7 +44,7 @@ * */ -#include <ctime> +#include <time.h> #include "AutoPanoSift.h" #include "sphereAlign.h" @@ -811,7 +811,7 @@ } finish = clock(); - time = (double(finish)-double(start))/CLOCKS_PER_SEC; + time = ((double)finish - (double)start ) / CLOCKS_PER_SEC; WriteLine("%.1f seconds to find keypoints", time); /** Find control points **/ @@ -833,8 +833,8 @@ useRansac, useAreaFiltration); finish = clock(); - time = (double(finish)-double(start))/CLOCKS_PER_SEC; - WriteLine("%.1f seconds to match keypoints", time); + time = ((double)finish - (double)start ) / CLOCKS_PER_SEC; + WriteLine("\n%.1f seconds to match keypoints", time); // Connected component check This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |