Clock() not behaving

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?

The documentation for clock() is overly-generous. Do not use this function. It does not return anything useful on either the device or the agent.

Peter