2001-08-09 00:07 GMT+2 Maurilio Longo <maurilio.longo@libero.it>

* 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.
This commit is contained in:
Maurilio Longo
2001-08-08 22:10:44 +00:00
parent 3a638fda83
commit 8ad6617e91
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2001-08-09 00:07 GMT+2 Maurilio Longo <maurilio.longo@libero.it>
* 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 <maurilio.longo@libero.it>
* include/hbvmpub.h
* source/vm/classes.c

View File

@@ -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 );
}