PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
propsideworkspace
Learn
Simple Libraries
Misc
libmstimer
libmstimer.c
1
/*
2
* @file libmstimer.c
3
*
4
* @author Andy Lindsay
5
*
6
* @copyright
7
* Copyright (C) Parallax, Inc. 2013. All Rights MIT Licensed.
8
*
9
* @brief Project and test harness for the mstimer library.
10
*/
11
12
#include "simpletools.h"
13
#include "mstimer.h"
14
15
int
main
()
16
{
17
mstime_start();
18
int
dt = CLKFREQ;
19
int
t = CNT;
20
while
(1)
21
{
22
int
time = mstime_get();
23
print(
"time = %d\n"
, time);
24
waitcnt(t += dt);
25
}
26
}
27
main
int main(void)
Definition:
GraphicsTest.c:20
Generated on Sat Aug 27 2016 00:58:09 for PropWare by
1.8.12