
BBjSessionInfo::getUserTime
Description
In BBj 23.0 and higher, this method returns the CPU time in nanoseconds that the session described by this BBjSessionInfo has executed in user mode.
Syntax
Return Value |
Method |
---|---|
long |
getUserTime() |
Parameters
None.
Return Value
Returns the CPU time in nanoseconds that the session described by this BBjSessionInfo has executed in user mode.
Remarks
None.
Example
Copy
BBjSessionInfo::getUserTime Example
rem ' BBjSessionInfo
info$ = stbl("!SESSIONINFO","Session Info Message")
info! = bbjapi().getCurrentSessionInfo()
print 'br',"bbjapi().getCurrentSessionInfo: ",'er',info!
print "getUser: ",info!.getUser()
print "getUnresponsiveTime:",info!.getUnresponsiveTime()
print "getIPAddress: ",info!.getIPAddress()
print "getConnectTime: ",info!.getConnectTime()
print "getProgramName: ",info!.getProgramName()
print "getProgramLine:",info!.getProgramLine()
print "getLineListing: ",info!.getLineListing()
print "isBackground: ",info!.isBackground()
print "getSessionID:",info!.getSessionID()
print "getTerminalID: ",info!.getTerminalID()
print "getTerminalName: ",info!.getTerminalName()
print "getMessage: ",info!.getMessage()
print "getUserTime:",info!.getUserTime(err=*next)
print "getCpuTime:",info!.getCpuTime(err=*next)
vector! = bbjapi().getSessionInfos()
size = vector!.size()
print 'br',"bbjapi().getSessionInfos:",'er'
for i = 0 to size - 1
info! = vector!.get(i)
print info!
next i
end
See Also
ThreadMXBean::getCurrentThreadUserTime
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.