Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "MacroInit.h"
- #include <time.h>
- void Macro_main(IN *p)
- {
- MarcoInit
- static int oldtime = 0;
- time_t newtime = time(NULL);
- if(LocalBit[1])
- {
- LocalWord[0] += newtime-oldtime; //общий счётчик секунд
- }
- oldtime = newtime;
- LocalWord[1] = LocalWord[0] / 60; //минуты
- LocalWord[2] = LocalWord[0] % 60; //секунды
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement