systray: Profiling code. Export environment variable SYSTRAY_PROFILING=1 when running tint2 to enable it

This commit is contained in:
o9000
2015-06-19 10:46:29 +02:00
parent 552f060612
commit 7c3951e3a0
3 changed files with 66 additions and 6 deletions

View File

@@ -73,4 +73,9 @@ gint compare_timespecs(const struct timespec* t1, const struct timespec* t2);
struct timespec add_msec_to_timespec(struct timespec ts, int msec);
/** Returns the time difference in seconds between the current time and the last time this function was called.
* At the first call returns zero.
**/
double profiling_get_time();
#endif // TIMER_H