fsautoproc
Basic file transformation automation management utility
Loading...
Searching...
No Matches
tm.h
Go to the documentation of this file.
1
3#ifndef FSAUTOPROC_TIME_H
4#define FSAUTOPROC_TIME_H
5
6#include <stdint.h>
7
10uint64_t tmnow(void);
11
21
28void tmsleep(uint32_t ms);
29
30#endif//FSAUTOPROC_TIME_H
void tmsleep(uint32_t ms)
Sleep for the specified number of milliseconds.
Definition tm.c:42
sleepdur_t
Predefined sleep durations in milliseconds for various polling cases.
Definition tm.h:14
@ DUR_IDLE_SHORT
Poll rate when a single worker is waiting for work.
Definition tm.h:18
@ DUR_WAIT
Poll rate when waiting for all thread pool work to finish.
Definition tm.h:16
@ DUR_IDLE_LONG
Poll rate when multiple worker threads are idle.
Definition tm.h:19
@ DUR_HALT
Poll rate when waiting for thread pool shutdown.
Definition tm.h:17
@ DUR_QUEUE
Poll rate when queueing new work to the thread pool.
Definition tm.h:15
uint64_t tmnow(void)
Get the current system time in milliseconds.
Definition tm.c:15