projects
/
Tachyon.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added nanosleep with float argument
[Tachyon.git]
/
test
/
sleep_float.cpp
1
#include <iostream>
2
#include "Tachyon.h"
3
4
int main()
5
{
6
7
Tachyon timebase;
8
float interval;
9
10
interval = 3.33;
11
12
std::cout << "Tachyon name is " << timebase.name() << "\n";
13
std::cout.flush();
14
for (int i = 0; i < 10; i++)
15
{
16
timebase.nanosleep(interval);
17
std::cout << "3.3 seconds.\n";
18
}
19
}