Hi Zhang Jun! Thanks for your kind response. I had set the time variable to be float type. This is what I always had. I'm reporting that when I use the GetTimeReal function, the returned value turns out to be values ranging between 0 and 65535 (ie unsigned 16 bit value). This means if I allow the program to cycle continuously, I get values that are like 135, 1000, 3000 etc etc... 64300, then back to 56....100, 500, 1556 etc etc ... 65500.... then the cycle repeats again.
But when I change the the function to GetTimeSec, the returned values are 0,0,0,0,0,0...etc.....1,1,1,1,1 etc ,2,2,2,2,2 etc etc....3,3,3,3,3...etc etc ...... where the values are observed to change after each 1 second. This is consistent with 1 second changes.
It appears that the documented description for returned value of the GetTimeReal function is incorrect. Rather than returning the number of seconds, it is actually returning the number of clock counts.
Thanks again Zhang Jun.
Kenny