See
In there I found a code snippet:
int timeout = KeywordHelper.checkTimeout(RunConfiguration.getTimeOut())
I am not sure if it is what you want.