I read that the use of clock() is not recommended, but I needed a 1 second counter and I thought this would be suitable. I tried this code in both the agent and device, and neither were quite what I expected:
`f <- clock()
function test(){
server.log("f="+(f-clock() ) )
imp.wakeup(5,test)
}
test()`
Bug?