mirror of
https://github.com/Lorikazzzz/VulnScanner-zmap-alternative-.git
synced 2026-02-06 15:53:31 +02:00
36 lines
653 B
C
36 lines
653 B
C
#ifndef PIXIE_TIMER_H
|
|
#define PIXIE_TIMER_H
|
|
#include <stdint.h>
|
|
|
|
/**
|
|
* The current time, in microseconds
|
|
*/
|
|
uint64_t pixie_gettime(void);
|
|
|
|
/**
|
|
* The current time, in nanoseconds
|
|
*/
|
|
uint64_t pixie_nanotime(void);
|
|
|
|
/**
|
|
* Wait the specified number of microseconds
|
|
*/
|
|
void pixie_usleep(uint64_t usec);
|
|
|
|
/**
|
|
* Wait the specified number of milliseconds
|
|
*/
|
|
void pixie_mssleep(unsigned milliseconds);
|
|
|
|
/**
|
|
* Do a self-test. Note that in some cases, this may
|
|
* actually fail when there is no problem. So far it hasn't, but I should
|
|
* probably add some code to fix this.
|
|
*/
|
|
int pixie_time_selftest(void);
|
|
|
|
|
|
|
|
|
|
#endif
|