If you need to verify using the time from the previous or the next second, you can use the following code:
DateTime now = DateTime.Now;
DateTime nextSecond = now.AddSeconds(1);
DateTime lastSecond = now.AddSeconds(-1);
Looking forward to hearing from you.