Current time

139 views
Skip to first unread message

Luigi Ferraris

unread,
Jun 5, 2025, 7:12:40 AMJun 5
to Harbour Users
Hi friends,
I don't remember if exists a (direct) function to retrieve only current time as seconds or milliseconds.
Many thanks in advance for any info.
Regards,
Luigi

Francolino

unread,
Jun 5, 2025, 8:51:59 AMJun 5
to harbou...@googlegroups.com

Hi Luigi

seconds()


Regards

Juan

--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/cb4e9e12-6c56-493f-947f-5e6dbced3501n%40googlegroups.com.

Luigi Ferraris

unread,
Jun 5, 2025, 10:36:23 AMJun 5
to Harbour Users
Hi Juan
gasp, gasp too very simple.... I was searching function starting with "T"
Many thanks
Luigi

Pierpaolo Martinello

unread,
Jun 6, 2025, 10:41:32 AMJun 6
to Harbour Users
Ciao Luigi, si è semplice
Potrebbe interessare anche :

hb_Sec(<tTimeStamp>) ➜ nSecond
returns the seconds (ss) "member" of a tTimeStamp. The returned value is a floating point number (ss.mmm) where the integer part is seconds while the decimal (fraction) part of it represents milliseconds.

hb_SecondsCPU( [<n>] ) ➜ nTime
reports how many CPU and/or System seconds have elapsed since the beginning of the program execution. See the table for possible value of <n> and the returned values:
Value of <n> Returned Value
1 User CPU time of the current process
2 System CPU time on behalf of the current process
3 Sum of (1+2) (default value)
11 Sum of the user CPU time of the current + child process
12 Sum of the system CPU time of the current + child process
13 Sum of (11+12)

 hb_MilliSeconds() ->Millisec()
 hb_Sec()  ->  Seconds()
 SecondsCPU()
 SecondsSleep()

Dove le funzioni che iniziano per hb_sono quelle native e non traslate dal file ch 

Potrebbe interessarTi anche questo comodo comando:
hbmk2.exe -find [nome funzione cercata]

Saluti

Pierpaolo Martinello

Luigi Ferraris

unread,
Jun 6, 2025, 12:34:05 PMJun 6
to Harbour Users
Grazie Pierpaolo, molto interessante!
Saluti
Reply all
Reply to author
Forward
0 new messages