export function createActionTimer < T > ( actionableObject , count ) { return ( action ) => { var hrstart = process . hrtime ( ) ; for ( var i = 0 ; i < count ; i ++ ) { action ( actionableObject ) ; } var hr = process . hrtime ( hrstart ) ; var s = hr [ 0 ] + hr [ 1 ] / ( 1000 * 1000 * 1000 ) ; var t = count / s ; console . info ( `Got ${ Math . round ( t ) }/s when running ${ action . toString ( ) } with ${ actionableObject . constructor . name }` ) ; return t / 1000 ; } ; }