mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 15:51:10 -06:00
Added some profilling macros into GCodeTimeEstimator
This commit is contained in:
parent
95bd2bb8f9
commit
167060e470
4 changed files with 36 additions and 3 deletions
|
@ -25,6 +25,9 @@ THE SOFTWARE.
|
|||
#ifndef SHINY_PREREQS_H
|
||||
#define SHINY_PREREQS_H
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef FALSE
|
||||
|
|
|
@ -93,8 +93,11 @@ float ShinyGetTickInvFreq(void) {
|
|||
|
||||
#elif SHINY_PLATFORM == SHINY_PLATFORM_POSIX
|
||||
|
||||
//#include <time.h>
|
||||
//#include <sys/time.h>
|
||||
|
||||
void ShinyGetTicks(shinytick_t *p) {
|
||||
timeval time;
|
||||
struct timeval time;
|
||||
gettimeofday(&time, NULL);
|
||||
|
||||
*p = time.tv_sec * 1000000 + time.tv_usec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue