export function currentTimestampSeconds ( ) { return Math . floor ( Date . now ( ) / 1000 ) ; } export function wait ( timeout ) { return new Promise ( resolve => { setTimeout ( ( ) => { resolve ( ) ; } , timeout ) ; } ) ; }