Swing Timer Macro

Hi,
I thought of a macro that takes the output of a swing timer and if the value is below a certain value it should cast sinister strike, therefore not cliping any attacks while spaming it. There should be a way, right?