Comments (2)
A minimum sample test program with examples of incorrect result and expected result would help.
from ps2sdk.
Sure, here's a simple program that will eventually fail the assertion:
#include <chrono>
#include <cassert>
#include <cstdio>
int main(int argc, char** argv)
{
using namespace std;
using namespace std::chrono;
auto currTime = steady_clock::now();
while(1)
{
auto newTime = steady_clock::now();
printf("newTime: %llu\n", static_cast<uint64_t>(newTime.time_since_epoch().count()));
assert(newTime >= currTime);
currTime = newTime;
}
return 1;
}
Excerpt from output:
...
newTime: 1679545584437568000
newTime: 1679545584440128000
newTime: 1679545584442688000
newTime: 1679545584445504000
newTime: 1679545584448064000
newTime: 1679545584450880000
newTime: 1679545584453440000
newTime: 1679545438000000000
assertion "newTime >= currTime" failed: file "/work/temp/main.cpp", line 14, function: int main(int, char**)
Excepted result is that the assertion will always be valid (especially since this is a steady_clock
which should be monotonic).
from ps2sdk.
Related Issues (20)
- [idea]: if MX4SIO driver is stored on a `sio/` folder. why not move sio2man and similar stuff there too? HOT 8
- Option argument for sceUsbdTransferPipe()? HOT 2
- `fileXio` somehow blocks `IOP` to reset
- Using docker, getting errors HOT 2
- Playstation2 read/write speed test HOT 1
- kr_ps2: possible typo HOT 1
- NETMAN: Why the readme file for this module is at repository root? HOT 1
- How do I use ps2adpcm tool HOT 1
- MIPTBP1 and 2 incorrect bitmask HOT 2
- Why not add support for GB2312 encoding HOT 2
- cdrom filepaths broken by new changes to libcglue's __path_absolute() function HOT 1
- VU1 sample syncronization problem HOT 3
- The ps2dev sdk ships an incomplete opusfile install HOT 4
- [PROPOSAL]: dispatch IRX modules built by debug PS2SDK into the release section HOT 2
- Issue with `sleep` function HOT 7
- shortcomings in audsrv and upsampling HOT 4
- [DISCUSSION]: PPC toolchain on PS2SDK. Do we want it? HOT 4
- [MCMAN] different return value compared to sce modules. why? HOT 2
- ps2sdk now only works on latest pcsx2 HOT 5
- ELF loader broken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ps2sdk.