File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 2424#include "ejudge/contest_plugin.h"
2525
2626#include <time.h>
27+ #include <sys/time.h>
2728
2829struct generic_section_config ;
2930struct section_global_data ;
@@ -248,7 +249,6 @@ struct serve_state
248249 int * group_member_map ;
249250
250251 time_t load_time ;
251- time_t current_time ;
252252 int clients_suspended ;
253253 int testing_suspended ;
254254 int printing_suspended ;
@@ -257,6 +257,13 @@ struct serve_state
257257 int standings_updated ;
258258 int has_olympiad_mode ;
259259
260+ // legacy timestamp
261+ time_t current_time ;
262+ // microsecond precision timestamp
263+ long long current_time_us ;
264+ // raw structure
265+ struct timeval current_time_tv ;
266+
260267 // upsolving mode
261268 int upsolving_mode ;
262269 int upsolving_freeze_standings ;
You can’t perform that action at this time.
0 commit comments