You need to add the Timer and create function. Here is the complete xpage source for simple implimentation
<?xml version="1.0" encoding="UTF-8"?>
<xp:view
xmlns:xp="http://www.ibm.com/xsp/core"
dojoParseOnLoad="true"
dojoTheme="true">
<xp:this.resources>
<xp:dojoModule
name="dojox.timing"></xp:dojoModule>
</xp:this.resources>
this demonstrates the dojox timer<xp:br></xp:br><xp:br></xp:br><xp:br></xp:br>
<xp:eventHandler
event="onClientLoad"
submit="false">
<xp:this.script><![CDATA[t = new dojox.timing.Timer(1000);
t.onTick = function() {
console.info("One second elapsed");
}
t.onStart = function() {
console.info("Starting timer");
}
t.start();]]></xp:this.script>
</xp:eventHandler>writes status to JS console every second
</xp:view>