This example uses WinGetCurrentTime to return the current time.
#define INCL_WINTIMER /* Window Timer Functions */ #include <os2.h> HAB hab; /* anchor-block handle */ ULONG ulTime; /* current time */ ulTime = WinGetCurrentTime(hab);