Sorry, I did not mean to imply that t must be in seconds. There is no requirement for t to be in seconds.
The FFT is one option, but there are many other options. Which one is best for you depends on your requirements. For example, the FFT is rather useless if you have less than one complete cycle of the sine wave. The FFT can also suffer from poor resolution. So-called superresolution algorithms exist (such as the MUSIC algorithm), which are superior in this respect.