1 | function scr_determine_playtime |
2 | { |
3 | var time_new = date_current_datetime() |
4 | var time_difference = floor(date_second_span(global.saved_datetime, time_new)) |
5 | global.elapsed_seconds += time_difference |
6 | global.saved_datetime = time_new |
7 | } |