getNow
The getNow
method is a convenience function to get the current timestamp as seen by the Manager
.
getNow(): number
returns | number | The current timestamp in milliseconds. |
---|
It is simply an alias for the JavaScript Date.now
function.
Example
This example gets the current time in milliseconds from the Manager
.
import {createManager} from 'tinytick';
const manager = createManager();
console.log(manager.getNow() == Date.now());
// -> true
Since
v1.0.0