TestTimer.cpp



/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 2 -*- */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#include <timer.hpp>

int main(int argc, char *argv[])
{

  if(argc<2)
  {
    puts("\nUSE:\nTestCrono <useconds>\n");
    puts("\t  e.g.");
    puts("\t    TestCrono 6000000 => Waits 6 seconds and print 'time passed'.\n");

    exit(EXIT_SUCCESS);
  }
  
  CMTimer temp(atol(argv[1]));
        
  while(1)
  {
    if(temp.check()==1)
      printf("Time passed\n");
  }

}
 All Data Structures Functions Variables
Generated on Mon Sep 12 07:59:09 2011 for API MokArdu by  doxygen 1.6.3