hello everyone, i want to learn a way to get the seconds of the clock of the pc. The reason is that i want to be available of making any delay using the time.
I think there's an interrupt that gives me all this variables, but i dont know which is it.
Thanks.
Posted on 2003-11-26 21:33:25 by vandyke
Assuming you are using DOS because Windows does not allow you to do this (You use GetSystemTime in Win32) you will find a fairly good interrupt reference here:

http://www-2.cs.cmu.edu/afs/cs.cmu.edu/user/ralf/pub/WWW/files.html
Posted on 2003-11-26 21:35:40 by donkey

hello everyone, i want to learn a way to get the seconds of the clock of the pc. The reason is that i want to be available of making any delay using the time.
I think there's an interrupt that gives me all this variables, but i dont know which is it.
Thanks.


If you're running under Win32, you can call Sleep or SleepEx to introduce delays in your programs.

In any case, the HLA Standard Library (also available for MASM32 users) contains a whole bunch of useful time and calendar related functions you can call. Also, if you're actually using HLA, you can use the timer class to time events in your code (objects require a lot more work under MASM than HLA, so most of the OOP stuff in the HLA Standard Library has yet to be ported).
Cheers,
Randy Hyde
http://webster.cs.ucr.edu <-- find the HLA stdlib here.
Posted on 2003-11-26 23:43:43 by rhyde