This was a long time ago, so it’s not the best description of the book. I remember these two boys were friends, and one day, they find out all their teachers and parents are part of a secret organisation which has a time machine.
The father of the main one of the two boys isn’t around, as he stole a time machine and is wanted.
And I think that someone tried to stop the assassination of the archduke of Austria.