From 8ad6617e91eea28516a82f4e072bb6b94962c3c6 Mon Sep 17 00:00:00 2001 From: Maurilio Longo Date: Wed, 8 Aug 2001 22:10:44 +0000 Subject: [PATCH] 2001-08-09 00:07 GMT+2 Maurilio Longo * source/rtl/seconds.c * changed HB_CLOKS2SECS to make it return a double (like Seconds()) this way profiler is able to show not only seconds spent inside a function but even tenths and hundredths. --- harbour/ChangeLog | 6 ++++++ harbour/source/rtl/seconds.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 8e093773da..7d4c93fdad 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,9 @@ +2001-08-09 00:07 GMT+2 Maurilio Longo + * source/rtl/seconds.c + * changed HB_CLOKS2SECS to make it return a double (like Seconds()) this way + profiler is able to show not only seconds spent inside a function but even + tenths and hundredths. + 2001-08-08 23:52 GMT+2 Maurilio Longo * include/hbvmpub.h * source/vm/classes.c diff --git a/harbour/source/rtl/seconds.c b/harbour/source/rtl/seconds.c index 7d4e08d6fe..a18fa3608d 100644 --- a/harbour/source/rtl/seconds.c +++ b/harbour/source/rtl/seconds.c @@ -86,5 +86,5 @@ HB_FUNC( SECONDS ) HB_FUNC( HB_CLOCKS2SECS ) { - hb_retnl( hb_parnl( 1 ) / CLOCKS_PER_SEC ); + hb_retnd((double) hb_parnl( 1 ) / CLOCKS_PER_SEC ); }