Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
tme committed May 25, 2018
0 parents commit 5ca6ac8
Show file tree
Hide file tree
Showing 8 changed files with 754 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitignore
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
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bin_PROGRAMS = helloclear
helloclear_SOURCES = src/main.c
TESTS = ./helloclear

14 changes: 14 additions & 0 deletions configure.ac
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
17 changes: 17 additions & 0 deletions src/debug.c
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);

}
7 changes: 7 additions & 0 deletions src/debug.h
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_
9 changes: 9 additions & 0 deletions src/definitions.h
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_
8 changes: 8 additions & 0 deletions src/main.c
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;
}

0 comments on commit 5ca6ac8

Please sign in to comment.