Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Action()
- {
- // add: #include <time.h> to globals.h
- time_t current_time;
- time_t stop_time;
- /* Obtain current time. */
- current_time = time(NULL);
- // wait 10 seconds
- stop_time = current_time+10;
- lr_log_message("Init: Current time is %d", current_time);
- lr_log_message("Init: Stop time is %d", stop_time);
- while (current_time < stop_time)
- {
- lr_log_message("Current time is %d", current_time);
- lr_think_time(.25);
- current_time = time(NULL);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement