benches, optimizations for sin and cos

This commit is contained in:
veclavtlica
2026-09-13 17:59:20 +03:00
parent 6d7fe7392a
commit 739237575a
8 changed files with 218 additions and 65 deletions
+14
View File
@@ -0,0 +1,14 @@
#ifndef COM_TIMER_H
#define COM_TIMER_H
#include "../def.h"
#include <stdint.h>
/* Global monotonic counter, meaning it always increases. Not applicable for
* getting "real" time, which the game shouldn't be aware of anyways. */
uint64_t com_timer_count_ns(void);
/* Output elapsed time against previous com_timer_count_ns() result. */
void com_timer_profile(uint64_t starttime, const char *what);
#endif