![]() |
MechSys
1.0
Computing library for simulations in continuum and discrete mechanics
|
#include <stdio.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <time.h>
#include <mechsys/util/string.h>
Go to the source code of this file.
Classes | |
class | Util::Stopwatch |
Namespaces | |
namespace | Util |
Convenience utilities. | |
Defines | |
#define | CONVERT_TO_HMS(seconds, H, M, S) |
#define CONVERT_TO_HMS | ( | seconds, | |
H, | |||
M, | |||
S | |||
) |
H = (unsigned int) ((unsigned int)seconds / 3600); \ M = (unsigned int)(((unsigned int)seconds % 3600) / 60); \ S = seconds-(unsigned int)(H*3600)-(unsigned int)(M*60);