1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-28 05:15:54 +00:00
FrankerFaceZ/socketserver/server/tickspersecond.go

13 lines
266 B
Go
Raw Normal View History

package server
// #include <unistd.h>
// long get_ticks_per_second() {
// return sysconf(_SC_CLK_TCK);
// }
//import "C"
// note: this seems to add 0.1s to compile time on my machine
//var ticksPerSecond = int(C.get_ticks_per_second())
var ticksPerSecond = 100