Is there anykind of ways to add time to your game?
For example some function which counts seconds...
Please read the manual before posting. Not only does it save our time and bandwidth, it also saves your time because it's way faster to take a quick look at the manual and reading a paragraph than posting the question here, waiting for an answer and then reading it, trust me.
Your keyword is "Timer". Yeah, I know, impossible to guess. :=
Hit F1 to bring up the help and search for this.
Or, if you want to add a clock to the game and display time, rather than just counting down with the timer: Try a forum search. there're a couple of topics addressing this, some (including this one (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=22745.0), which is quite in-depth) in the Technical Archive.
And, while you're looking in the manual, you might also want to take a look at the DateTime functions and properties (http://www.adventuregamestudio.co.uk/manual/DateTime%20functions%20and%20properties.htm).