commit 982341aefe4a8612dee27b6d4b6e4df24a0cfa05 parent a21906b19cbe0bd0ff289a4357c51da28fe91ba7 Author: Michael Savage <mikejsavage@gmail.com> Date: Sat Jun 3 16:07:12 +0300 Oops Diffstat:
log.cc | | | 1 | + |
profiler.cc | | | 2 | +- |
diff --git a/log.cc b/log.cc @@ -1,4 +1,5 @@ #include <stdio.h> +#include <time.h> #include "intrinsics.h" #include "log.h" diff --git a/profiler.cc b/profiler.cc @@ -102,7 +102,7 @@ void profiler_pop( const char * name ) { u64 clocks = now - timer_stack[ timer_stack_top ].pushed_at; Timer * timer = &all_timers[ idx ]; - stats_record( &timer->stats, clocks ); + stats_record( &timer->stats, double( clocks ) ); if( name == NULL ) { name = timer->name;