In Win32Asm? Or DOS16Asm?
Try looking up GetTickCount() for the former.
The GetTickCount function retrieves the number of milliseconds that have elapsed since Windows was started.
DWORD GetTickCount(VOID)
Parameters
This function has no parameters.
Return Value
If the function succeeds, the return value is the number of milliseconds that have elapsed since Windows was started.
Remarks
The GetTickCount function is identical to the GetCurrentTime function. Applications should use the GetTickCount function because its name matches more closely what the function does.
The GetTickCount and GetMessageTime functions return different times. GetMessageTime returns the Windows time when the given message was created, not the current Windows time.
The internal timer wraps around to zero if Windows is run continuously for approximately 49.7 days.
For DOS... there is also a TickCount but it's accessed by a location or via a BIOS int call, although the 'by location' method is preferred.
"Information has a tendency to be free. Which means someone will always tell you something you don't want to know."