Skip to content

Instantly share code, notes, and snippets.

View nickolayl's full-sized avatar

Nickolay Loshchinin nickolayl

View GitHub Profile
@nickolayl
nickolayl / conda_setup.md
Created February 15, 2024 15:56 — forked from jpz/conda_setup.md
Using Conda to Create C++ Environments

Using Conda to Create C++ Environments

Conda is a package manager, which arose from the Data Science and Python community to manage complicated binary and source deployments.

It can be leveraged for non-Python environments also.

From our experience of COMP6771 2020, we required an install of clang, along with C++ libraries.

@nickolayl
nickolayl / timer.c
Created May 25, 2020 11:26
Cross-platform, drop-in, high resolution timer for C/C++ projects.
/* ----------------------------------------------------------------------- */
/*
Easy embeddable cross-platform high resolution timer function. For each
platform we select the high resolution timer. You can call the 'ns()'
function in your file after embedding this.
*/
#include <stdint.h>
#if defined(__linux)
# define HAVE_POSIX_TIMER
# include <time.h>