Cpu
PowerScript function
Description
Reports the amount of CPU time that has elapsed since the
application started.
Syntax
|
1 |
Cpu ( ) |
Return value
Long.
Returns the number of milliseconds of CPU time elapsed since the
start of your PowerBuilder application.
Examples
These statements determine the amount of CPU time that elapsed while
a group of statements executed:
|
1 2 3 4 5 6 7 8 |
long ll_start, ll_used // Set the start equal to the current CPU usage. ll_start = Cpu() ... // Executable statements being timed // Set ll_used to the number of CPU seconds // that were used (current CPU time - start). ll_used = Cpu() - ll_start |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest