-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tme
committed
May 25, 2018
0 parents
commit 5ca6ac8
Showing
8 changed files
with
754 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
*~ | ||
.deps | ||
Makefile | ||
Makefile.in | ||
aclocal.m4 | ||
autom4te.cache/ | ||
config.h | ||
config.h.in | ||
config.log | ||
config.status | ||
configure | ||
depcomp | ||
install-sh | ||
*.o | ||
missing | ||
stamp-h1 | ||
DEADJOE | ||
test/ | ||
test | ||
clr_power | ||
*.tar.gz |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
bin_PROGRAMS = helloclear | ||
helloclear_SOURCES = src/main.c | ||
TESTS = ./helloclear | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# -*- Autoconf -*- | ||
# Process this file with autoconf to produce a configure script. | ||
|
||
AC_PREREQ([2.66]) | ||
AC_INIT(helloclear, 8, [email protected]) | ||
AM_INIT_AUTOMAKE([foreign -Wall -W]) | ||
AM_SILENT_RULES([yes]) | ||
AC_PROG_CC | ||
AC_LANG(C) | ||
AC_CONFIG_HEADERS([config.h]) | ||
|
||
|
||
AC_CONFIG_FILES([Makefile]) | ||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <stdio.h> | ||
#include <sys/time.h> | ||
#include "debug.h" | ||
|
||
struct timeval tm1; | ||
|
||
void start(){ | ||
gettimeofday(&tm1, NULL); | ||
} | ||
|
||
void stop(){ | ||
struct timeval tm2; | ||
gettimeofday(&tm2, NULL); | ||
unsigned long long t = 1000 * (tm2.tv_sec - tm1.tv_sec) + (tm2.tv_usec - tm1.tv_usec) / 1000; | ||
printf("%llu ms\n", t); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef DEBUG_H_ | ||
#define DEBUG_H_ | ||
|
||
void start(); | ||
void stop(); | ||
|
||
#endif // DEBUG_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef DEFINITIONS_H_ | ||
#define DEFINITIONS_H_ | ||
|
||
#define ARRAY_LEN 30000 | ||
#define PI_LEN_MIN 10000 | ||
#define PI_LEN_MAX 100000 | ||
#define MATRIX_SIZE 800 | ||
|
||
#endif // DEFINITIONS_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
int main(int argc, char **argv) | ||
{ | ||
printf("Hello Clear\n"); | ||
return EXIT_SUCCESS; | ||
} |