diff options
| author | leochanj105 <leochanj@live.unc.edu> | 2020-10-20 03:47:33 -0400 |
|---|---|---|
| committer | leochanj105 <leochanj@live.unc.edu> | 2020-10-20 03:47:33 -0400 |
| commit | a32f220f06cc463e5b56e7fa0b1b1334d94d08f3 (patch) | |
| tree | 4af4caa60074465d85fc2ef5cc1b23e74c064329 /SD-VBS/common/matlab/photonStartTiming.c | |
| parent | 79f30887129145e15e5172e36a7d7602859fc932 (diff) | |
matlab removed
Diffstat (limited to 'SD-VBS/common/matlab/photonStartTiming.c')
| -rw-r--r-- | SD-VBS/common/matlab/photonStartTiming.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/SD-VBS/common/matlab/photonStartTiming.c b/SD-VBS/common/matlab/photonStartTiming.c deleted file mode 100644 index bbf5231..0000000 --- a/SD-VBS/common/matlab/photonStartTiming.c +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | #include"mex.h" | ||
| 2 | #include <stdio.h> | ||
| 3 | #include <stdlib.h> | ||
| 4 | #include <stdint.h> | ||
| 5 | #include <math.h> | ||
| 6 | |||
| 7 | void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) | ||
| 8 | { | ||
| 9 | uint32_t* cycles; | ||
| 10 | plhs[0] = mxCreateNumericMatrix(1, 2, mxUINT32_CLASS, mxREAL); | ||
| 11 | cycles = (uint32_t*)mxGetPr(plhs[0]); | ||
| 12 | __asm__ __volatile__( "rdtsc": "=a" (cycles[0]), "=d" (cycles[1])); | ||
| 13 | |||
| 14 | return; | ||
| 15 | } | ||
